X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4004f41e3ce1655f9fa05c55a697ac0f8677c23a..54081dc5c22c4ef292eb343b4c5b8821ac92dbbd:/src/msw/statbmp.cpp?ds=sidebyside diff --git a/src/msw/statbmp.cpp b/src/msw/statbmp.cpp index 909a09c532..fd9dd5db30 100644 --- a/src/msw/statbmp.cpp +++ b/src/msw/statbmp.cpp @@ -85,6 +85,12 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID id, // be ignored by Windows wxIcon *icon = (wxIcon *)NULL; m_isIcon = bitmap.IsKindOf(CLASSINFO(wxIcon)); + +#ifdef __WIN16__ + wxASSERT_MSG( !m_isIcon, "Icons are not supported in wxStaticBitmap under WIN16." ); +#endif + +#ifndef __WIN16__ if ( !m_isIcon ) { const wxBitmap& bmp = (const wxBitmap&)bitmap; @@ -97,6 +103,7 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID id, m_isIcon = TRUE; } } +#endif #ifdef __WIN32__ // create a static control with either SS_BITMAP or SS_ICON style depending @@ -112,7 +119,8 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID id, ( classname, wxT(""), - winstyle | WS_CHILD | WS_VISIBLE | WS_DISABLED, + // NOT DISABLED!!! We want to move it in Dialog Editor. + winstyle | WS_CHILD | WS_VISIBLE /* | WS_CLIPSIBLINGS */ , // | WS_DISABLED, 0, 0, 0, 0, (HWND)parent->GetHWND(), (HMENU)m_windowId,