]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
minor cleanup
[wxWidgets.git] / src / msw / window.cpp
index 7d7bdf9bddb01c7176a625dfea5f4f7450a4ae6c..31a58a801c1a1e75f4a9ff531c99d93f9669118d 100644 (file)
@@ -1146,8 +1146,9 @@ WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const
 
     // using this flag results in very significant reduction in flicker,
     // especially with controls inside the static boxes (as the interior of the
-    // box is not redrawn twice)
-    if (!wxSystemOptions::GetOptionInt(wxT("msw.window.no-clip-children")) == 1)
+    // box is not redrawn twice).
+    // wxCLIP_CHILDREN support is for compatibility with old applications only.
+    if ((!wxSystemOptions::GetOptionInt(wxT("msw.window.no-clip-children")) == 1) || (flags & wxCLIP_CHILDREN))
         style |= WS_CLIPCHILDREN;
 
     // it doesn't seem useful to use WS_CLIPSIBLINGS here as we officially
@@ -2781,7 +2782,7 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
                         wxHelpEvent helpEvent(wxEVT_HELP,
                                               subjectOfHelp->GetId(),
 #ifdef __WXWINCE__
-                                              wxPoint()
+                                              wxPoint(0,0)
 #else
                                               wxPoint(info->MousePos.x, info->MousePos.y)
 #endif