- implements an initial DrawMenuBar function (fixes the taskbar menu redraw bug)

- sorry, may contain a potentially hackfix (SendMessage WM_NCPAINT)

svn path=/trunk/; revision=39703
This commit is contained in:
Matthias Kupfer 2009-02-21 22:35:11 +00:00
parent b94b97a10e
commit 166f97fa19

View file

@ -4033,7 +4033,21 @@ CreatePopupMenu(VOID)
BOOL WINAPI
DrawMenuBar(HWND hWnd)
{
return (BOOL)NtUserCallHwndLock(hWnd, HWNDLOCK_ROUTINE_DRAWMENUBAR);
ROSMENUINFO MenuInfo;
HMENU hMenu;
hMenu = GetMenu(hWnd);
if (!hMenu)
return FALSE;
MenuGetRosMenuInfo(&MenuInfo, hMenu);
MenuInfo.Height = 0; // make sure to recalc size
MenuSetRosMenuInfo(&MenuInfo);
/* The wine method doesn't work and I suspect it's more effort
then hackfix solution
SetWindowPos( hWnd, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE |
SWP_NOZORDER | SWP_FRAMECHANGED );
return TRUE;*/
// FIXME: hackfix
return SendMessage(hWnd,WM_NCPAINT,(WPARAM)1,(LPARAM)0L);
}