Skip to content
Snippets Groups Projects
Commit 62fb0825 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

Process pending events before sending WM_PAINT on RDW_UPDATENOW.

parent 646d621f
No related branches found
No related tags found
No related merge requests found
......@@ -712,6 +712,8 @@ static HRGN RDW_Paint( WND* wndPtr, HRGN hrgn, UINT flags, UINT ex )
if (flags & RDW_UPDATENOW)
{
/* process pending events and messages before painting */
MsgWaitForMultipleObjects( 0, NULL, FALSE, 0, QS_ALLINPUT );
if (wndPtr->hrgnUpdate) /* wm_painticon wparam is 1 */
SendMessageW( hWnd, (bIcon) ? WM_PAINTICON : WM_PAINT, bIcon, 0 );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment