git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12521
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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 LVM_FIRST
+
// check for messages from the header (in report view)
HWND hwndHdr = ListView_GetHeader(GetHwnd());
// check for messages from the header (in report view)
HWND hwndHdr = ListView_GetHeader(GetHwnd());
return wxControl::MSWOnNotify(idCtrl, lParam, result);
}
}
return wxControl::MSWOnNotify(idCtrl, lParam, result);
}
}
- else if ( nmhdr->hwndFrom == GetHwnd() )
+ else
+#endif // defined(LVM_FIRST)
+ if ( nmhdr->hwndFrom == GetHwnd() )
{
// almost all messages use NM_LISTVIEW
NM_LISTVIEW *nmLV = (NM_LISTVIEW *)nmhdr;
{
// almost all messages use NM_LISTVIEW
NM_LISTVIEW *nmLV = (NM_LISTVIEW *)nmhdr;