From 4f27582cc8679185ea5b52fbf947d72679ca5d52 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Mon, 20 Jun 2005 11:45:21 +0000 Subject: [PATCH] Stub implementation for GetMenuBarInfo. --- dlls/user/menu.c | 8 ++++++++ dlls/user/user32.spec | 2 +- include/winuser.h | 10 ++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/dlls/user/menu.c b/dlls/user/menu.c index eb1a089b5d8..4abcb86d6a1 100644 --- a/dlls/user/menu.c +++ b/dlls/user/menu.c @@ -3758,6 +3758,14 @@ HMENU WINAPI GetMenu( HWND hWnd ) return retvalue; } +/********************************************************************** + * GetMenuBarInfo (USER32.@) + */ +BOOL WINAPI GetMenuBarInfo( HWND hwnd, LONG idObject, LONG idItem, PMENUBARINFO pmbi ) +{ + FIXME( "(%p,0x%08lx,0x%08lx,%p)\n", hwnd, idObject, idItem, pmbi ); + return FALSE; +} /********************************************************************** * MENU_SetMenu diff --git a/dlls/user/user32.spec b/dlls/user/user32.spec index af4ef47230b..2bc67878381 100644 --- a/dlls/user/user32.spec +++ b/dlls/user/user32.spec @@ -266,7 +266,7 @@ @ stdcall GetLastInputInfo(ptr) # @ stub GetListBoxInfo @ stdcall GetMenu(long) -# @ stub GetMenuBarInfo +@ stdcall GetMenuBarInfo(long long long ptr) @ stdcall GetMenuCheckMarkDimensions() @ stdcall GetMenuContextHelpId(long) @ stdcall GetMenuDefaultItem(long long long) diff --git a/include/winuser.h b/include/winuser.h index f8e73245880..68c0cb055ed 100644 --- a/include/winuser.h +++ b/include/winuser.h @@ -1977,6 +1977,15 @@ typedef const MENUITEMINFOA *LPCMENUITEMINFOA; typedef const MENUITEMINFOW *LPCMENUITEMINFOW; DECL_WINELIB_TYPE_AW(LPCMENUITEMINFO) +typedef struct tagMENUBARINFO { + DWORD cbSize; + RECT rcBar; + HMENU hMenu; + HWND hwndMenu; + BOOL fBarFocused:1; + BOOL fFocused:1; +} MENUBARINFO, *PMENUBARINFO, *LPMENUBARINFO; + typedef struct tagMENUINFO { DWORD cbSize; DWORD fMask; @@ -3934,6 +3943,7 @@ BOOL WINAPI GetIconInfo(HICON,PICONINFO); HKL WINAPI GetKeyboardLayout(DWORD); UINT WINAPI GetKeyboardLayoutList(INT,HKL *); BOOL WINAPI GetComboBoxInfo(HWND,PCOMBOBOXINFO); +BOOL WINAPI GetMenuBarInfo(HWND,LONG,LONG,PMENUBARINFO); DWORD WINAPI GetMenuContextHelpId(HMENU); UINT WINAPI GetMenuDefaultItem(HMENU,UINT,UINT); BOOL WINAPI GetMenuInfo(HMENU,LPMENUINFO);