From f69306fe61bfce53b6261f18967cceaefd919d90 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 28 Dec 2012 16:03:16 +0000 Subject: [PATCH] Process HDN_TRACK in wxMSW wxHeaderCtrl just in case. 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/msw/headerctrl.cpp b/src/msw/headerctrl.cpp index 6e543752ab..b68b51ee1a 100644 --- a/src/msw/headerctrl.cpp +++ b/src/msw/headerctrl.cpp @@ -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) ) { -- 2.45.2