+
+ panel = new wxPanel(m_notebook);
+ wxIcon icon = wxTheApp->GetStdIcon(wxICON_INFORMATION);
+ wxStaticBitmap *bmpStatic = new wxStaticBitmap(panel, -1, icon, wxPoint(10, 10));
+
+ bmpStatic = new wxStaticBitmap(panel, -1, wxNullIcon, wxPoint(50, 10));
+ bmpStatic->SetIcon(wxTheApp->GetStdIcon(wxICON_QUESTION));
+
+ wxBitmap bitmap( 100, 100 );
+ wxMemoryDC dc;
+ dc.SelectObject( bitmap );
+ dc.SetPen(*wxGREEN_PEN);
+ dc.DrawEllipse(5, 5, 90, 90);
+ dc.DrawText("Bitmap", 20, 20);
+ dc.SelectObject( wxNullBitmap );
+
+ wxBitmapButton *bmpBtn = new wxBitmapButton
+ (
+ panel,
+ -1,
+ bitmap,
+ wxPoint(100, 20)
+ );
+ bmpBtn = NULL; // suppress warning
+
+ new wxButton(panel, -1, "Another button", wxPoint(250, 20));
+
+ m_notebook->AddPage(panel, "wxBitmapXXX");