]> git.saurik.com Git - wxWidgets.git/commit
Fall back on ::GetMessagePos() if ::GetCursorPos() fails under MSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Nov 2011 12:51:53 +0000 (12:51 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Nov 2011 12:51:53 +0000 (12:51 +0000)
commitd6c37f5bc40dc01ba7a0db6c50a79d88bdd028c7
tree61100c82090f96600c98ec336f4aa84234862504
parent3e6807d7019e72131db24a03c9ab298fb1c18c89
Fall back on ::GetMessagePos() if ::GetCursorPos() fails under MSW.

In some rare but reproducible cases GetCursorPos() can fail and return without
filling in the provided point. Fall back to GetMessagePos() if this happens:
this is not ideal but clearly better than using uninitialized position or hard
coding something like (0, 0).

Closes #13664.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/msw/private.h
src/msw/listctrl.cpp
src/msw/treectrl.cpp
src/msw/uiaction.cpp
src/msw/utilsgui.cpp
src/msw/window.cpp