mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
- modify hackfix DrawMenuBar function use user32 function instead of sending messages
- DefWndNCPaint needs to split up and some parts have to move to subsystems to provide the menu functions independent of window non-client drawing svn path=/trunk/; revision=39874
This commit is contained in:
parent
ab0b3f0bd4
commit
3804c261a6
1 changed files with 4 additions and 1 deletions
|
@ -16,6 +16,8 @@
|
|||
#include <wine/debug.h>
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(user32);
|
||||
|
||||
LRESULT DefWndNCPaint(HWND hWnd, HRGN hRgn, BOOL Active);
|
||||
|
||||
/* internal popup menu window messages */
|
||||
#define MM_SETMENUHANDLE (WM_USER + 0)
|
||||
#define MM_GETMENUHANDLE (WM_USER + 1)
|
||||
|
@ -4048,7 +4050,8 @@ DrawMenuBar(HWND hWnd)
|
|||
SWP_NOZORDER | SWP_FRAMECHANGED );
|
||||
return TRUE;*/
|
||||
// FIXME: hackfix
|
||||
return SendMessage(hWnd,WM_NCPAINT,(WPARAM)1,(LPARAM)0L);
|
||||
DefWndNCPaint(hWnd,(HRGN)-1,-1);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue