X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..00c813596e3eefdd028365acf9542355937e5531:/src/msw/statline.cpp diff --git a/src/msw/statline.cpp b/src/msw/statline.cpp index 605153f40d..2bf14042af 100644 --- a/src/msw/statline.cpp +++ b/src/msw/statline.cpp @@ -66,12 +66,17 @@ bool wxStaticLine::Create( wxWindow *parent, wxSize sizeReal = AdjustSize(size); + 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(""), - WS_VISIBLE | WS_CHILD /* | WS_CLIPSIBLINGS */ | - SS_GRAYRECT | SS_SUNKEN | SS_NOTIFY, + wstyle, pos.x, pos.y, sizeReal.x, sizeReal.y, GetWinHwnd(parent), (HMENU)m_windowId,