Definition at line 37 of file CheckBoxDrum.h. Referenced by CheckBox3D::Draw(), and OglGui::CheckBox3D::Draw(). 00038 { 00039 float x1 = x; 00040 float y1 = y; 00041 float x2 = x1 + w; 00042 float y2 = y1 + h; 00043 ULONG Col1, Col2; 00044 00045 Col1 = type==BEV_SUNKEN ? oglDARKGREY : oglWHITE; 00046 Col2 = type==BEV_SUNKEN ? oglWHITE : oglDARKGREY; 00047 00048 if( type == BEV_LINE ) Col1 = Col2; 00049 00050 SetSolidLineColor( Col1 ); 00051 DrawLine( x1, y1, x1, y2 ); 00052 DrawLine( x1, y2, x2, y2); 00053 00054 SetSolidLineColor( Col2 ); 00055 DrawLine( x1, y1, x2, y1 ); 00056 DrawLine( x2, y1, x2, y2 ); 00057 }
|