[vlc-devel] commit: WinCE: emulate GetMenuState() function (Pierre Ynard )
git version control
git at videolan.org
Tue Jan 12 14:51:26 CET 2010
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Jan 12 14:47:44 2010 +0100| [6a2e4014fe6ed3d920703de0650cb8ad701329e8] | committer: 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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6a2e4014fe6ed3d920703de0650cb8ad701329e8
---
modules/video_output/msw/events.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c
index 36e10a3..f93a921 100644
--- a/modules/video_output/msw/events.c
+++ b/modules/video_output/msw/events.c
@@ -56,6 +56,15 @@
#ifdef UNDER_CE
#include <aygshell.h>
//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
/*#if defined(UNDER_CE) && !defined(__PLUGIN__) --FIXME*/
More information about the vlc-devel
mailing list