]> git.saurik.com Git - wxWidgets.git/commitdiff
changed LVHITTESTINFO to LV_HITTESTINFO
authorUnknown (CR) <nobody@localhost>
Wed, 13 Oct 1999 22:33:43 +0000 (22:33 +0000)
committerUnknown (CR) <nobody@localhost>
Wed, 13 Oct 1999 22:33:43 +0000 (22:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp

index 93d6a1482e40e9bfdc9a4f742fc5e00ca1bf7459..e5325e37f8cc803ea6a6c8afed2023ca952d97c5 100644 (file)
@@ -1350,29 +1350,29 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
               NM_RCLICK waits for the WM_RBUTTONUP message as well before firing off.
               We want to have notify events for both down -and- up. */
            {
-               // if the user processes it in wxEVT_COMMAND_RIGHT_CLICK(), don't do
-               // anything else
-               if ( wxControl::MSWOnNotify(idCtrl, lParam, result) ) {
-                   return TRUE;
-               }
-               
-               // else translate it into wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK event
-               LVHITTESTINFO lvhti;
+                   // if the user processes it in wxEVT_COMMAND_RIGHT_CLICK(), don't do
+                   // anything else
+                   if ( wxControl::MSWOnNotify(idCtrl, lParam, result) ) {
+                   return TRUE;
+                   }
+               
+                   // else translate it into wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK event
+                   LV_HITTESTINFO lvhti;
 #ifdef __GNUWIN32__
-               memset(&lvhti,0,sizeof(LVHITTESTINFO));
+                   memset(&lvhti,0,sizeof(LV_HITTESTINFO));
 #else
-               ZeroMemory(&lvhti, sizeof(LVHITTESTINFO)); // must set all fields to 0
+                   ZeroMemory(&lvhti, sizeof(LV_HITTESTINFO)); // must set all fields to 0
 #endif
-               ::GetCursorPos(&(lvhti.pt));
-               ::ScreenToClient(GetHwnd(),&(lvhti.pt));
-               if(ListView_HitTest(GetHwnd(),&lvhti)!=-1) {
-                   if(lvhti.flags & LVHT_ONITEM) {
-                       eventType = wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK;
-                       event.m_itemIndex = lvhti.iItem;
-                   }
-               }
+               ::GetCursorPos(&(lvhti.pt));
+                   ::ScreenToClient(GetHwnd(),&(lvhti.pt));
+                   if(ListView_HitTest(GetHwnd(),&lvhti)!=-1) {
+                       if(lvhti.flags & LVHT_ONITEM) {
+                                   eventType = wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK;
+                                   event.m_itemIndex = lvhti.iItem;
+                           }
+            }
            }
-           break;
+               break;
       
            /*
              case NM_MCLICK: // ***** THERE IS NO NM_MCLICK. Subclass anyone? ******