-#endif
-
- m_hWnd = (WXHWND)CreateWindowEx
- (
- MakeExtendedStyle(m_windowStyle),
- wxT("BUTTON"),
- label,
- msStyle,
- 0, 0, 0, 0,
- GetWinHwnd(parent),
- (HMENU)m_windowId,
- wxGetInstance(),
- NULL
- );
-
- if (m_hWnd == 0)
- {
- wxString msg;
-#ifdef __WIN16__
- msg.Printf(wxT("CreateWindowEx failed"));
-#else
- msg.Printf(wxT("CreateWindowEx failed with error number %ld"), (long) GetLastError());
-#endif
- wxFAIL_MSG(msg);
- }
-
- // Subclass again for purposes of dialog editing mode
- SubclassWin(m_hWnd);
-
- SetFont(parent->GetFont());
-
- SetSize(pos.x, pos.y, size.x, size.y);
-
- return TRUE;
-}