- 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 ( !m_hWnd )
- {
- wxLogDebug(_T("Failed to create static control"));
+ return MSWCreateControl(_T("STATIC"), _T(""), pos, size, style);
+}