- const wxChar *classname = wxT("BUTTON");
- int winstyle = BS_OWNERDRAW;
-#endif // Win32
-
- if ( m_windowStyle & wxCLIP_SIBLINGS )
- winstyle |= WS_CLIPSIBLINGS;
-
-
- m_hWnd = (WXHWND)::CreateWindow
- (
- classname,
- wxT(""),
- // 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,
- wxGetInstance(),
- NULL
- );
-
- wxCHECK_MSG( m_hWnd, FALSE, wxT("Failed to create static bitmap") );