]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/gizmos/statpict.cpp
Fixed bug in setting/getting value for wxComboBox. Read-only status
[wxWidgets.git] / contrib / src / gizmos / statpict.cpp
index 1f50fc8ce5ee6cd1c0980cd8e59f9c96bb828dc7..42f38b202b9d0f3007a665e009018780290ad43c 100644 (file)
@@ -13,6 +13,7 @@
   #pragma implementation "statpict.h"
 #endif
 
+#include "wx/wxprec.h"
 #include "wx/defs.h"
 
 #include "wx/gizmos/statpict.h"
@@ -42,9 +43,9 @@ bool wxStaticPicture::Create(wxWindow *parent, wxWindowID id,
     wxSize size = s ;
     if ( bitmap.Ok() )
     {
-        if ( size.x == -1 )
+        if ( size.x == wxDefaultCoord )
             size.x = bitmap.GetWidth() ;
-        if ( size.y == -1 )
+        if ( size.y == wxDefaultCoord )
             size.y = bitmap.GetHeight() ;
     }
 
@@ -62,7 +63,7 @@ bool wxStaticPicture::Create(wxWindow *parent, wxWindowID id,
         OriginalImage = Bitmap.ConvertToImage();
 #endif
 
-    if ( id == -1 )
+    if ( id == wxID_ANY )
         m_windowId = (int)NewControlId();
     else
         m_windowId = id;