// 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;
m_isIcon = TRUE;
}
}
+#endif
#ifdef __WIN32__
// create a static control with either SS_BITMAP or SS_ICON style depending
int winstyle = BS_OWNERDRAW;
#endif // Win32
+ if ( m_windowStyle & wxCLIP_SIBLINGS )
+ winstyle |= WS_CLIPSIBLINGS;
+
+
m_hWnd = (WXHWND)::CreateWindow
(
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,