]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/classic/statbmp.cpp
!__WX_DC_BLIT_FIXED__ case
[wxWidgets.git] / src / mac / classic / statbmp.cpp
index 0282d8491bab01282edb7888a2bd1efcc35b8568..e34226021d3df534bc58cce93f591c1621106f1f 100644 (file)
 #endif
 
 #include "wx/statbmp.h"
-#include "wx/dcclient.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/dcclient.h"
+#endif
 
 IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl)
 
@@ -49,7 +52,7 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID id,
     m_foregroundColour = parent->GetForegroundColour() ;
 
     m_bitmap = bitmap;
-    if ( id == -1 )
+    if ( id == wxID_ANY )
           m_windowId = (int)NewControlId();
     else
         m_windowId = id;