X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18f3decb46a80b38801dd6590d08eb525d3a3963..3f4a2351e4c677c88c18ea812b609477adee7380:/src/mac/classic/statbmp.cpp?ds=sidebyside diff --git a/src/mac/classic/statbmp.cpp b/src/mac/classic/statbmp.cpp index 0282d8491b..e34226021d 100644 --- a/src/mac/classic/statbmp.cpp +++ b/src/mac/classic/statbmp.cpp @@ -16,7 +16,10 @@ #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;