Use GetCursorPos on WinCE wherever possible (otherwise the wrong
cursor is shown) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -222,10 +222,13 @@ static void EnsureParentHasControlParentStyle(wxWindow *parent)
|
|||||||
// On Windows CE, GetCursorPos can return an error, so use this function
|
// On Windows CE, GetCursorPos can return an error, so use this function
|
||||||
// instead
|
// instead
|
||||||
bool GetCursorPosWinCE(POINT* pt)
|
bool GetCursorPosWinCE(POINT* pt)
|
||||||
|
{
|
||||||
|
if (!GetCursorPos(pt))
|
||||||
{
|
{
|
||||||
DWORD pos = GetMessagePos();
|
DWORD pos = GetMessagePos();
|
||||||
pt->x = LOWORD(pos);
|
pt->x = LOWORD(pos);
|
||||||
pt->y = HIWORD(pos);
|
pt->y = HIWORD(pos);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user