- HWND static_item =
- CreateWindowEx(0, "BUTTON", "", BS_OWNERDRAW | WS_TABSTOP | WS_CHILD,
- 0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)m_windowId,
- wxGetInstance(), NULL);
- m_hWnd = (WXHWND) static_item;
+ m_hWnd = (WXHWND)CreateWindow
+ (
+ "BUTTON",
+ "",
+ BS_OWNERDRAW | WS_TABSTOP | WS_CHILD | WS_VISIBLE,
+ 0, 0, 0, 0,
+ (HWND)parent->GetHWND(),
+ (HMENU)m_windowId,
+ wxGetInstance(),
+ NULL
+ );