X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d0b223a1483141d4a6535af46141943f30e5a40b..d06b34a73eb466126513bf8b0ed586a8ababc141:/src/msw/statbmp.cpp diff --git a/src/msw/statbmp.cpp b/src/msw/statbmp.cpp index 2f54f08674..7b939e5ec4 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