]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/statline.cpp
More small fixes
[wxWidgets.git] / src / msw / statline.cpp
index 605153f40d4e185595d34c9d192ad60c9e9252e9..2bf14042af379e9fe41b3e5bdcb51d9306abab97 100644 (file)
@@ -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,