- 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:
Matthias Kupfer 2009-03-04 19:35:58 +00:00
parent ab0b3f0bd4
commit 3804c261a6

View file

@ -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;
}