X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9add93670bb4a38e4007b8422b34b29b6194eecb..5c250a10332dc17263c66deb629b5fa8c4320f8a:/src/msw/menu.cpp diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index 750b6d64f1..1dd2db9179 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -832,7 +832,13 @@ int wxMenuBar::MSWPositionForWxMenu(wxMenu *menu, int wxpos) wxASSERT(menu); wxASSERT(menu->GetHMenu()); wxASSERT(m_hMenu); + +#if defined(__WXWINCE__) + int totalMSWItems = GetMenuCount(); +#else int totalMSWItems = GetMenuItemCount((HMENU)m_hMenu); +#endif + int i; // For old C++ compatibility for(i=wxpos; i