+void wxStaticBitmap::OnPaint (
+ wxPaintEvent& WXUNUSED(rEvent)
+)
+{
+ wxPaintDC vDc(this);
+ wxBitmap* pBitmap;
+
+ if (m_pImage->IsKindOf(CLASSINFO(wxIcon)))
+ {
+ wxIcon* pIcon;
+
+ pIcon = wxDynamicCast(m_pImage, wxIcon);
+ pBitmap = new wxBitmap(*pIcon);
+ vDc.DrawBitmap(*pBitmap, 0, 0);
+ delete pBitmap;
+ }
+ else
+ {
+ pBitmap = wxDynamicCast(m_pImage, wxBitmap);
+ vDc.DrawBitmap(*pBitmap, 0, 0);
+ }
+} // end of wxStaticBitmap::OnPaint
+