diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index e37f779da2..2b2e42d79e 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -1998,11 +1998,6 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) 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) HWND hwndHdr = ListView_GetHeader(GetHwnd()); @@ -2097,9 +2092,7 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) if ( ignore ) return wxListCtrlBase::MSWOnNotify(idCtrl, lParam, result); } - else -#endif // defined(HDN_BEGINTRACKA) - if ( nmhdr->hwndFrom == GetHwnd() ) + else if ( nmhdr->hwndFrom == GetHwnd() ) { // almost all messages use NM_LISTVIEW NM_LISTVIEW *nmLV = (NM_LISTVIEW *)nmhdr;