- wxSize sizeReal = AdjustSize(size);
-
- m_hWnd = (WXHWND)::CreateWindow
- (
- _T("STATIC"),
- "",
- WS_VISIBLE | WS_CHILD |
- SS_GRAYRECT | SS_SUNKEN,// | SS_ETCHEDFRAME,
- 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;