Commit 85d14279 authored by Alexandre Julliard's avatar Alexandre Julliard

Support sending WM_PAINT across processes when it doesn't contain an

HDC.
parent 607b43e6
...@@ -584,12 +584,14 @@ static size_t pack_message( HWND hwnd, UINT message, WPARAM wparam, LPARAM lpara ...@@ -584,12 +584,14 @@ static size_t pack_message( HWND hwnd, UINT message, WPARAM wparam, LPARAM lpara
case WM_WINE_MOUSE_LL_HOOK: case WM_WINE_MOUSE_LL_HOOK:
push_data( data, (MSLLHOOKSTRUCT *)lparam, sizeof(MSLLHOOKSTRUCT) ); push_data( data, (MSLLHOOKSTRUCT *)lparam, sizeof(MSLLHOOKSTRUCT) );
return 0; return 0;
case WM_PAINT:
if (!wparam) return 0;
/* fall through */
/* these contain an HFONT */ /* these contain an HFONT */
case WM_SETFONT: case WM_SETFONT:
case WM_GETFONT: case WM_GETFONT:
/* these contain an HDC */ /* these contain an HDC */
case WM_PAINT:
case WM_ERASEBKGND: case WM_ERASEBKGND:
case WM_ICONERASEBKGND: case WM_ICONERASEBKGND:
case WM_NCPAINT: case WM_NCPAINT:
...@@ -840,12 +842,14 @@ static BOOL unpack_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM *lpa ...@@ -840,12 +842,14 @@ static BOOL unpack_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM *lpa
case WM_WINE_MOUSE_LL_HOOK: case WM_WINE_MOUSE_LL_HOOK:
minsize = sizeof(MSLLHOOKSTRUCT); minsize = sizeof(MSLLHOOKSTRUCT);
break; break;
case WM_PAINT:
if (!*wparam) return TRUE;
/* fall through */
/* these contain an HFONT */ /* these contain an HFONT */
case WM_SETFONT: case WM_SETFONT:
case WM_GETFONT: case WM_GETFONT:
/* these contain an HDC */ /* these contain an HDC */
case WM_PAINT:
case WM_ERASEBKGND: case WM_ERASEBKGND:
case WM_ICONERASEBKGND: case WM_ICONERASEBKGND:
case WM_NCPAINT: case WM_NCPAINT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment