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
This commit is contained in:
parent
31a1584724
commit
f69306fe61
@ -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) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user