X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18f3decb46a80b38801dd6590d08eb525d3a3963..d10e22fe8ad283f37b1809349028ffc282e393ce:/src/mac/classic/statbmp.cpp 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;