MinGW fix for XP fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-10-24 11:35:21 +00:00
parent 9a713b1149
commit a693d65e54
3 changed files with 12 additions and 2 deletions

View File

@@ -1762,6 +1762,12 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
case HDN_GETDISPINFOW:
{
#ifdef __GNUWIN32__
// Can someone test if this is OK on XP? Otherwise
// we will have to define LPNMHDDISPINFOW for MinGW/Cygwin
// and do as below.
return TRUE;
#else
LPNMHDDISPINFOW info = (LPNMHDDISPINFOW) lParam;
// This is a fix for a strange bug under XP.
// Normally, info->iItem is a valid index, but
@@ -1775,6 +1781,7 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
return TRUE;
else
return wxControl::MSWOnNotify(idCtrl, lParam, result);
#endif
}
default:
return wxControl::MSWOnNotify(idCtrl, lParam, result);