- DWORD wstyle = WS_CHILD | WS_VISIBLE | SS_GRAYRECT | SS_SUNKEN | SS_NOTIFY;
-
- if ( style & wxCLIP_SIBLINGS )
- wstyle |= WS_CLIPSIBLINGS;
-
-
- m_hWnd = (WXHWND)::CreateWindow
- (
- wxT("STATIC"),
- wxT(""),
- wstyle,
- pos.x, pos.y, sizeReal.x, sizeReal.y,
- GetWinHwnd(parent),
- (HMENU)m_windowId,
- wxGetInstance(),
- NULL
- );
+ return MSWCreateControl(wxT("STATIC"), wxEmptyString, pos, size);
+}