Eric Pouech : user32: Allow interprocess WM_NCPAINT messages when wParam is 0 or 1.

Alexandre Julliard julliard at wine.codeweavers.com
Thu May 18 03:57:06 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: b980bbec17acd0efc5c104ef4b05730ef10ea525
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=b980bbec17acd0efc5c104ef4b05730ef10ea525

Author: Eric Pouech <eric.pouech at wanadoo.fr>
Date:   Tue May 16 21:14:59 2006 +0200

user32: Allow interprocess WM_NCPAINT messages when wParam is 0 or 1.

---

 dlls/user/message.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/dlls/user/message.c b/dlls/user/message.c
index c3ab617..ab6527b 100644
--- a/dlls/user/message.c
+++ b/dlls/user/message.c
@@ -619,6 +619,11 @@ static size_t pack_message( HWND hwnd, U
     case WM_WINE_MOUSE_LL_HOOK:
         push_data( data, (MSLLHOOKSTRUCT *)lparam, sizeof(MSLLHOOKSTRUCT) );
         return 0;
+    case WM_NCPAINT:
+        if (wparam <= 1) return 0;
+        FIXME( "WM_NCPAINT hdc packing not supported yet\n" );
+        data->count = -1;
+        return 0;
     case WM_PAINT:
         if (!wparam) return 0;
         /* fall through */
@@ -629,7 +634,6 @@ static size_t pack_message( HWND hwnd, U
     /* these contain an HDC */
     case WM_ERASEBKGND:
     case WM_ICONERASEBKGND:
-    case WM_NCPAINT:
     case WM_CTLCOLORMSGBOX:
     case WM_CTLCOLOREDIT:
     case WM_CTLCOLORLISTBOX:
@@ -879,6 +883,10 @@ static BOOL unpack_message( HWND hwnd, U
     case WM_WINE_MOUSE_LL_HOOK:
         minsize = sizeof(MSLLHOOKSTRUCT);
         break;
+    case WM_NCPAINT:
+        if (*wparam <= 1) return TRUE;
+        FIXME( "WM_NCPAINT hdc unpacking not supported\n" );
+        return FALSE;
     case WM_PAINT:
         if (!*wparam) return TRUE;
         /* fall through */
@@ -889,7 +897,6 @@ static BOOL unpack_message( HWND hwnd, U
     /* these contain an HDC */
     case WM_ERASEBKGND:
     case WM_ICONERASEBKGND:
-    case WM_NCPAINT:
     case WM_CTLCOLORMSGBOX:
     case WM_CTLCOLOREDIT:
     case WM_CTLCOLORLISTBOX:




More information about the wine-cvs mailing list