]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/headerctrl.cpp
fix virtual function hiding warnings
[wxWidgets.git] / src / msw / headerctrl.cpp
index c4beb2534df2adbb8e60de1139ec59af98c422a3..1eb17c1e8e5162cfbb0830a7d0f42940bf476a45 100644 (file)
@@ -535,7 +535,12 @@ bool wxHeaderCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
                 if ( idx != wxNOT_FOUND )
                 {
                     idx = MSWFromNativeIdx(idx);
-                    evtType = GetClickEventType(code == NM_RDBLCLK, 1);
+
+                    // due to a bug in mingw32 headers NM_RDBLCLK is signed
+                    // there so we need a cast to avoid warnings about signed/
+                    // unsigned comparison
+                    evtType = GetClickEventType(
+                                code == static_cast<UINT>(NM_RDBLCLK), 1);
                 }
                 //else: ignore clicks outside any column
             }