cursor is shown)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33708
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// instead
bool GetCursorPosWinCE(POINT* pt)
{
- DWORD pos = GetMessagePos();
- pt->x = LOWORD(pos);
- pt->y = HIWORD(pos);
+ if (!GetCursorPos(pt))
+ {
+ DWORD pos = GetMessagePos();
+ pt->x = LOWORD(pos);
+ pt->y = HIWORD(pos);
+ }
return true;
}
#endif
// specific way (for example, depending on the current position)
POINT pt;
#ifdef __WXWINCE__
- if ( !::GetCursorPosWinCE(&pt) )
+ if ( !::GetCursorPosWinCE(&pt))
#else
if ( !::GetCursorPos(&pt) )
-#endif
+#endif
{
wxLogLastError(wxT("GetCursorPos"));
}