]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/treectrl.cpp
Fall back on ::GetMessagePos() if ::GetCursorPos() fails under MSW.
[wxWidgets.git] / src / msw / treectrl.cpp
index f67589c3f7cf53e1b0c6ad843fcb98dd44777d47..6cd893542d9a999e0b9a4815a971ab416293af2f 100644 (file)
@@ -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) )
                 {