]> git.saurik.com Git - wxWidgets.git/commitdiff
don't return HTCLIENT for radiobox - this breaks redrawing under Windows XP
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 31 Jan 2002 21:48:25 +0000 (21:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 31 Jan 2002 21:48:25 +0000 (21:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/radiobox.cpp

index 94deec9009b37905cb42910bb6da1caa3b3307d5..1d9fedde7f155f253c1d261defd29583061cd16d 100644 (file)
@@ -786,6 +786,10 @@ long wxRadioBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
             }
 #endif // Win32
 
+        // VZ: this code breaks radiobox redrawing under Windows XP, don't use
+        //     it. If you need to get messages from the static controls,
+        //     create them as a child of another (non static) window
+#if 0
         // This is required for the radiobox to be sensitive to mouse input,
         // e.g. for Dialog Editor.
         case WM_NCHITTEST:
@@ -801,6 +805,7 @@ long wxRadioBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
                     return (long)HTCLIENT;
             }
             break;
+#endif // 0
     }
 
     return wxControl::MSWWindowProc(nMsg, wParam, lParam);