- 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
- );
+ return MSWCreateControl(wxT("STATIC"), wxEmptyString, pos, size);
+}