]> git.saurik.com Git - wxWidgets.git/commitdiff
Process HDN_TRACK in wxMSW wxHeaderCtrl just in case.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 28 Dec 2012 16:03:16 +0000 (16:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 28 Dec 2012 16:03:16 +0000 (16:03 +0000)
This message is not supposed to be sent but apparently some buggy comctl32.dll
versions do send it instead of HDN_ITEMCHANGING, so handle it too.

Closes #13506.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/headerctrl.cpp

index 6e543752abf7a26c7fe4641689df37564d8af232..b68b51ee1afc35ccb93171188bd405a1fa922f02 100644 (file)
@@ -587,6 +587,11 @@ bool wxHeaderCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
             }
             break;
 
+            // The control is not supposed to send HDN_TRACK when using
+            // HDS_FULLDRAG (which we do use) but apparently some versions of
+            // comctl32.dll still do it, see #13506, so catch both messages
+            // just in case we are dealing with one of these buggy versions.
+        case HDN_TRACK:
         case HDN_ITEMCHANGING:
             if ( nmhdr->pitem && (nmhdr->pitem->mask & HDI_WIDTH) )
             {