From c592363e95152fdd6eb7618b5505f815e40c4787 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 16 Apr 2016 17:03:54 +0200 Subject: [PATCH] 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. --- src/msw/listctrl.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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;