Commit 6a2e4014 authored by Pierre Ynard's avatar Pierre Ynard

WinCE: emulate GetMenuState() function

This fixes video_output plugins on WinCE. Note that GetMenuState() is
considered as "superseded" by GetMenuItemInfo(), so it might be better
to just drop the former altogether.
parent 1a974cea
...@@ -56,6 +56,15 @@ ...@@ -56,6 +56,15 @@
#ifdef UNDER_CE #ifdef UNDER_CE
#include <aygshell.h> #include <aygshell.h>
//WINSHELLAPI BOOL WINAPI SHFullScreen(HWND hwndRequester, DWORD dwState); //WINSHELLAPI BOOL WINAPI SHFullScreen(HWND hwndRequester, DWORD dwState);
UINT GetMenuState(HMENU hMenu, UINT id, UINT flags)
{
MENUITEMINFO info;
if (!GetMenuItemInfo(hMenu, id, (flags & MF_BYPOSITION) != 0, &info))
return -1;
/* XXX Submenu handling is missing... */
return info.fState;
}
#endif #endif
/*#if defined(UNDER_CE) && !defined(__PLUGIN__) --FIXME*/ /*#if defined(UNDER_CE) && !defined(__PLUGIN__) --FIXME*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment