mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
- 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:
parent
b94b97a10e
commit
166f97fa19
1 changed files with 15 additions and 1 deletions
|
@ -4033,7 +4033,21 @@ CreatePopupMenu(VOID)
|
||||||
BOOL WINAPI
|
BOOL WINAPI
|
||||||
DrawMenuBar(HWND hWnd)
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue