예제 #1
0
	void c_geo_line_string::paint(gd::GraphicsObject3D *pobj, double view_scale)const
	{
		pobj->begin_line_string(m_color, 0, m_line_width, false);
		for (int i = 0; i < m_shape_pts.size(); i++)
		{
			pobj->line_string(m_shape_pts[i]);
		}
		pobj->end();
		pobj->setAllColor(RGBF(0, 0, 255));
	}
예제 #2
0
void TEventWindow::set_background(float r, float g, float b)
//-----------------------------------------
{
    COLORREF rgb = RGBF(r,g,b);
    m_bkgnd_brush = CreateSolidBrush(rgb);
    get_dc()->get(this);
    SetBkColor(get_dc()->get_hdc(),rgb);
    get_dc()->select(m_bkgnd_brush);
    m_bk_color = rgb;
    get_dc()->release(this);
    invalidate();
}
예제 #3
0
void TControl::set_colour(float r, float g, float b)
{
    m_colour = (long)RGBF(r,g,b);
    update();
}
예제 #4
0
void TDC::set_back_colour(float r, float g, float b)
{
   set_back_colour(RGBF(r,g,b));
}
예제 #5
0
// this changes both the _pen_ and the _text_ colour
void TDC::set_colour(float r, float g, float b)
//----------------------------
{
   set_colour(RGBF(r,g,b));
}