Remove obsolete test for HDN_BEGINTRACKA being defined
It's used without this test in src/msw/headerctrl.cpp, so we can be sure using this symbol doesn't create any problems any more.
This commit is contained in:
@@ -1998,11 +1998,6 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
|||||||
|
|
||||||
NMHDR *nmhdr = (NMHDR *)lParam;
|
NMHDR *nmhdr = (NMHDR *)lParam;
|
||||||
|
|
||||||
// if your compiler is as broken as this, you should really change it: this
|
|
||||||
// code is needed for normal operation! #ifdef below is only useful for
|
|
||||||
// automatic rebuilds which are done with a very old compiler version
|
|
||||||
#ifdef HDN_BEGINTRACKA
|
|
||||||
|
|
||||||
// check for messages from the header (in report view)
|
// check for messages from the header (in report view)
|
||||||
HWND hwndHdr = ListView_GetHeader(GetHwnd());
|
HWND hwndHdr = ListView_GetHeader(GetHwnd());
|
||||||
|
|
||||||
@@ -2097,9 +2092,7 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
|||||||
if ( ignore )
|
if ( ignore )
|
||||||
return wxListCtrlBase::MSWOnNotify(idCtrl, lParam, result);
|
return wxListCtrlBase::MSWOnNotify(idCtrl, lParam, result);
|
||||||
}
|
}
|
||||||
else
|
else if ( nmhdr->hwndFrom == GetHwnd() )
|
||||||
#endif // defined(HDN_BEGINTRACKA)
|
|
||||||
if ( nmhdr->hwndFrom == GetHwnd() )
|
|
||||||
{
|
{
|
||||||
// almost all messages use NM_LISTVIEW
|
// almost all messages use NM_LISTVIEW
|
||||||
NM_LISTVIEW *nmLV = (NM_LISTVIEW *)nmhdr;
|
NM_LISTVIEW *nmLV = (NM_LISTVIEW *)nmhdr;
|
||||||
|
Reference in New Issue
Block a user