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
// where did the click occur?
POINT ptClick;
// 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"));
if ( !::GetCursorPos(&ptClick) )
{
wxLogLastError(_T("GetCursorPos"));
LV_HITTESTINFO lvhti;
wxZeroMemory(lvhti);
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 )
::GetCursorPos(&(lvhti.pt));
::ScreenToClient(GetHwnd(),&(lvhti.pt));
if ( ListView_HitTest(GetHwnd(),&lvhti) != -1 )
+#ifdef __WXWINCE__
+ if(widthTextMax) widthTextMax += 2;
+#endif
return wxSize(widthTextMax, heightTextTotal);
}
return wxSize(widthTextMax, heightTextTotal);
}