changed LVHITTESTINFO to LV_HITTESTINFO
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e43cab59ed
commit
9bfa7bfcbd
@ -1357,11 +1357,11 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// else translate it into wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK event
|
// else translate it into wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK event
|
||||||
LVHITTESTINFO lvhti;
|
LV_HITTESTINFO lvhti;
|
||||||
#ifdef __GNUWIN32__
|
#ifdef __GNUWIN32__
|
||||||
memset(&lvhti,0,sizeof(LVHITTESTINFO));
|
memset(&lvhti,0,sizeof(LV_HITTESTINFO));
|
||||||
#else
|
#else
|
||||||
ZeroMemory(&lvhti, sizeof(LVHITTESTINFO)); // must set all fields to 0
|
ZeroMemory(&lvhti, sizeof(LV_HITTESTINFO)); // must set all fields to 0
|
||||||
#endif
|
#endif
|
||||||
::GetCursorPos(&(lvhti.pt));
|
::GetCursorPos(&(lvhti.pt));
|
||||||
::ScreenToClient(GetHwnd(),&(lvhti.pt));
|
::ScreenToClient(GetHwnd(),&(lvhti.pt));
|
||||||
|
Loading…
Reference in New Issue
Block a user