]> git.saurik.com Git - wxWidgets.git/commitdiff
Patches from "Viktor Voroshylo" <viktor@voroshylo.com>
authorJulian Smart <julian@anthemion.co.uk>
Tue, 2 Dec 2003 08:56:47 +0000 (08:56 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 2 Dec 2003 08:56:47 +0000 (08:56 +0000)
isses with context menu on real PocketPC device
static text not showing full message under WinCE

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp
src/msw/stattext.cpp

index f548be6ac334e0b2044ff8dc04f4abc3be44f9c8..b0633936f3d524deea449ca111d2cb8febb1006a 100644 (file)
@@ -1822,6 +1822,11 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
 
                     // where did the click occur?
                     POINT ptClick;
+#ifdef __WXWINCE__
+                  if(nmhdr->code == GN_CONTEXTMENU) {
+                      ptClick = ((NMRGINFO*)nmhdr)->ptAction;
+                  } else 
+#endif __WXWINCE__
                     if ( !::GetCursorPos(&ptClick) )
                     {
                         wxLogLastError(_T("GetCursorPos"));
@@ -2152,6 +2157,11 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
                 LV_HITTESTINFO lvhti;
                 wxZeroMemory(lvhti);
 
+#ifdef __WXWINCE__
+              if(nmhdr->code == GN_CONTEXTMENU) {
+                  lvhti.pt = ((NMRGINFO*)nmhdr)->ptAction;
+              } else 
+#endif __WXWINCE__
                 ::GetCursorPos(&(lvhti.pt));
                 ::ScreenToClient(GetHwnd(),&(lvhti.pt));
                 if ( ListView_HitTest(GetHwnd(),&lvhti) != -1 )
index d281fe97b64daeebfff9f1ce37823170d99f1237..f11e04cb191d75893ed105544c4236df22d9b460 100644 (file)
@@ -192,7 +192,9 @@ wxSize wxStaticText::DoGetBestSize() const
             curLine += *pc;
         }
     }
-
+#ifdef __WXWINCE__
+    if(widthTextMax) widthTextMax += 2;
+#endif
     return wxSize(widthTextMax, heightTextTotal);
 }