X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e6807d7019e72131db24a03c9ab298fb1c18c89..d6c37f5bc40dc01ba7a0db6c50a79d88bdd028c7:/src/msw/treectrl.cpp diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index f67589c3f7..6cd893542d 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -3645,7 +3645,7 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) case NM_RCLICK: { TV_HITTESTINFO tvhti; - ::GetCursorPos(&tvhti.pt); + wxGetCursorPosMSW(&tvhti.pt); ::ScreenToClient(GetHwnd(), &tvhti.pt); if ( TreeView_HitTest(GetHwnd(), &tvhti) ) {