- modify hackfix DrawMenuBar function use user32 function instead of sending messages
authorMatthias Kupfer <mkupfer@reactos.org>
Wed, 4 Mar 2009 19:35:58 +0000 (19:35 +0000)
committerMatthias Kupfer <mkupfer@reactos.org>
Wed, 4 Mar 2009 19:35:58 +0000 (19:35 +0000)
- 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

reactos/dll/win32/user32/windows/menu.c

index 18b0ea1..ce2b29b 100644 (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;
 }