]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/gizmos/statpict.cpp
Defaults in wxWinCE documented.
[wxWidgets.git] / contrib / src / gizmos / statpict.cpp
index 5f6ce086de753390535c2367a06389ae3ce50895..62a51d123b3e2aeba4bd2684878ee43907c475c9 100644 (file)
 #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
  */
@@ -43,9 +42,9 @@ bool wxStaticPicture::Create(wxWindow *parent, wxWindowID id,
     wxSize size = s ;
     if ( bitmap.Ok() )
     {
-        if ( size.x == wxDefaultSize.x )
+        if ( size.x == wxDefaultCoord )
             size.x = bitmap.GetWidth() ;
-        if ( size.y == wxDefaultSize.y )
+        if ( size.y == wxDefaultCoord )
             size.y = bitmap.GetHeight() ;
     }
 
@@ -154,5 +153,3 @@ void wxStaticPicture::OnPaint(wxPaintEvent& WXUNUSED(event))
     dc.EndDrawing();
 }
 
-//WXDLLEXPORT_DATA(const wxChar *) wxStaticPictureNameStr = wxT("message");
-const wxChar * wxStaticPictureNameStr = wxT("message");