X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/422d0ff0bec79832494fe4605ffdcf8e87ba6c03..a6c129111b38341eb561b110fd1566b260740675:/contrib/src/gizmos/statpict.cpp diff --git a/contrib/src/gizmos/statpict.cpp b/contrib/src/gizmos/statpict.cpp index 42f38b202b..a6fd9f768e 100644 --- a/contrib/src/gizmos/statpict.cpp +++ b/contrib/src/gizmos/statpict.cpp @@ -9,20 +9,15 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ - #pragma implementation "statpict.h" -#endif - #include "wx/wxprec.h" #include "wx/defs.h" #include "wx/gizmos/statpict.h" #include "wx/dcclient.h" -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxStaticPicture, wxControl) -#endif - +WXDLLIMPEXP_GIZMOS const wxChar * wxStaticPictureNameStr = wxT("staticPicture"); + /* * wxStaticPicture */ @@ -94,7 +89,6 @@ void wxStaticPicture::OnPaint(wxPaintEvent& WXUNUSED(event)) wxPaintDC dc( this ); PrepareDC( dc ); - dc.BeginDrawing(); wxSize sz = GetSize(); wxSize bmpsz( Bitmap.GetWidth(), Bitmap.GetHeight() ); @@ -150,9 +144,5 @@ void wxStaticPicture::OnPaint(wxPaintEvent& WXUNUSED(event)) } else dc.DrawBitmap( Bitmap, pos.x, pos.y ); - - dc.EndDrawing(); } -//WXDLLEXPORT_DATA(const wxChar *) wxStaticPictureNameStr = wxT("message"); -const wxChar * wxStaticPictureNameStr = wxT("message");