- wxSize sizeReal = AdjustSize(size);
-
- m_hWnd = (WXHWND)::CreateWindow
- (
- wxT("STATIC"),
- wxT(""),
- WS_VISIBLE | WS_CHILD /* | WS_CLIPSIBLINGS */ |
- SS_GRAYRECT | SS_SUNKEN | SS_NOTIFY,
- pos.x, pos.y, sizeReal.x, sizeReal.y,
- GetWinHwnd(parent),
- (HMENU)m_windowId,
- wxGetInstance(),
- NULL
- );
+ if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) )
+ return FALSE;