Implement DrawMenuBar.

svn path=/trunk/; revision=16514
This commit is contained in:
James Tabor 2005-07-09 04:11:36 +00:00
parent 91269f987b
commit 6b36fb6848
2 changed files with 17 additions and 6 deletions

View file

@ -3534,14 +3534,12 @@ DestroyMenu(HMENU hMenu)
/*
* @unimplemented
* @implemented
*/
BOOL STDCALL
DrawMenuBar(HWND hWnd)
{
UNIMPLEMENTED
/* FIXME - return NtUserCallHwndLock(hWnd, 0x55); */
return FALSE;
return (BOOL)NtUserCallHwndLock(hWnd, HWNDLOCK_ROUTINE_DRAWMENUBAR);
}

View file

@ -651,8 +651,21 @@ NtUserCallHwndLock(
break;
case HWNDLOCK_ROUTINE_DRAWMENUBAR:
/* FIXME */
break;
{
PMENU_OBJECT MenuObject;
DPRINT1("HWNDLOCK_ROUTINE_DRAWMENUBAR\n");
Ret = FALSE;
if (!((Window->Style & (WS_CHILD | WS_POPUP)) != WS_CHILD)) break;
MenuObject = IntGetMenuObject((HMENU) Window->IDMenu);
if(MenuObject == NULL) break;
MenuObject->MenuInfo.WndOwner = hWnd;
MenuObject->MenuInfo.Height = 0;
IntReleaseMenuObject(MenuObject);
WinPosSetWindowPos(hWnd, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE |
SWP_NOACTIVATE | SWP_NOZORDER | SWP_FRAMECHANGED );
Ret = TRUE;
break;
}
case HWNDLOCK_ROUTINE_REDRAWFRAME:
/* FIXME */