- wxBitmap bmp(8, 4);
- {
- wxMemoryDC dc;
-
- dc.SelectObject(bmp);
- dc.SetBrush(wxBrush(GetBackgroundColour()));
- dc.SetPen(wxPen(GetBackgroundColour()));
- dc.DrawRectangle(0,0, 8,4);
-
- dc.SetBrush(wxBrush(GetForegroundColour()));
- dc.SetPen(wxPen(GetForegroundColour()));
- wxPoint pt[3] = { wxPoint(0,0), wxPoint(6,0), wxPoint(3,3) };
- dc.DrawPolygon(3, pt);
- dc.SelectObject(wxNullBitmap);
- }
-
- m_txt=new wxTextCtrl(this, CTRLID_TXT, txt);