X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..29149a64916d6fdc53e445adca9ef83bc58fb6c3:/src/msw/statbmp.cpp diff --git a/src/msw/statbmp.cpp b/src/msw/statbmp.cpp index fd9dd5db30..f51c590ce6 100644 --- a/src/msw/statbmp.cpp +++ b/src/msw/statbmp.cpp @@ -28,6 +28,8 @@ #pragma hdrstop #endif +#if wxUSE_STATBMP + #include "wx/window.h" #include "wx/msw/private.h" @@ -115,6 +117,10 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID id, int winstyle = BS_OWNERDRAW; #endif // Win32 + if ( m_windowStyle & wxCLIP_SIBLINGS ) + winstyle |= WS_CLIPSIBLINGS; + + m_hWnd = (WXHWND)::CreateWindow ( classname, @@ -266,3 +272,4 @@ long wxStaticBitmap::MSWWindowProc(WXUINT nMsg, return wxWindow::MSWWindowProc(nMsg, wParam, lParam); } +#endif // wxUSE_STATBMP