[ros-diffs] [mkupfer] 39874: - 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

mkupfer at svn.reactos.org mkupfer at svn.reactos.org
Wed Mar 4 20:35:58 CET 2009


Author: mkupfer
Date: Wed Mar  4 22:35:58 2009
New Revision: 39874

URL: http://svn.reactos.org/svn/reactos?rev=39874&view=rev
Log:
- 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

Modified:
    trunk/reactos/dll/win32/user32/windows/menu.c

Modified: trunk/reactos/dll/win32/user32/windows/menu.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/menu.c?rev=39874&r1=39873&r2=39874&view=diff
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/menu.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/menu.c [iso-8859-1] Wed Mar  4 22:35:58 2009
@@ -15,6 +15,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)
@@ -4048,7 +4050,8 @@
                   SWP_NOZORDER | SWP_FRAMECHANGED );
   return TRUE;*/
   // FIXME: hackfix
-  return SendMessage(hWnd,WM_NCPAINT,(WPARAM)1,(LPARAM)0L);
+  DefWndNCPaint(hWnd,(HRGN)-1,-1);
+  return TRUE;
 }
 
 



More information about the Ros-diffs mailing list