X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18f3decb46a80b38801dd6590d08eb525d3a3963..c7c6e54baed01937426239dd38164ee0326fa172:/src/mac/classic/statbmp.cpp diff --git a/src/mac/classic/statbmp.cpp b/src/mac/classic/statbmp.cpp index 0282d8491b..4192e30e3f 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; @@ -57,7 +60,7 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID id, m_windowStyle = style; bool ret = wxControl::Create( parent, id, pos, size, style , wxDefaultValidator , name ); - SetBestSize( size ) ; + SetInitialSize( size ) ; return ret; }