Added patch to send WM_PAINT event during dialog creation.

This commit is contained in:
Sebastian Lackner
2014-09-26 20:27:43 +02:00
parent a5250a0fc4
commit d8de3eb6fa
5 changed files with 50 additions and 1 deletions

View File

@@ -63,6 +63,7 @@ PATCHLIST := \
shell32-RunDLL_CallEntry16.ok \
shell32-SHCreateSessionKey.ok \
shlwapi-UrlCombine.ok \
user32-Dialog_Paint_Event.ok \
user32-GetSystemMetrics.ok \
user32-GetTipText.ok \
user32-WndProc.ok \
@@ -996,6 +997,24 @@ shlwapi-UrlCombine.ok:
echo '+ { "shlwapi-UrlCombine", "Sebastian Lackner", "Workaround for broken implementation of shlwapi url functions." },'; \
) > shlwapi-UrlCombine.ok
# Patchset user32-Dialog_Paint_Event
# |
# | Included patches:
# | * Call UpdateWindow during DIALOG_CreateIndirect. [by Sebastian Lackner]
# |
# | This patchset fixes the following Wine bugs:
# | * [#35652] Send WM_PAINT event during dialog creation
# |
# | Modified files:
# | * dlls/user32/dialog.c
# |
.INTERMEDIATE: user32-Dialog_Paint_Event.ok
user32-Dialog_Paint_Event.ok:
$(call APPLY_FILE,user32-Dialog_Paint_Event/0001-user32-Call-UpdateWindow-during-DIALOG_CreateIndirec.patch)
@( \
echo '+ { "user32-Dialog_Paint_Event", "Sebastian Lackner", "Call UpdateWindow during DIALOG_CreateIndirect." },'; \
) > user32-Dialog_Paint_Event.ok
# Patchset user32-GetSystemMetrics
# |
# | Included patches:

View File

@@ -0,0 +1,24 @@
From 3d286a43424fc20c3a8ccdfbbbf7ce84a2bb4300 Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Fri, 26 Sep 2014 20:24:50 +0200
Subject: user32: Call UpdateWindow() during DIALOG_CreateIndirect.
---
dlls/user32/dialog.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/user32/dialog.c b/dlls/user32/dialog.c
index 497d545..819af7a 100644
--- a/dlls/user32/dialog.c
+++ b/dlls/user32/dialog.c
@@ -714,6 +714,7 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
if (template.style & WS_VISIBLE && !(GetWindowLongW( hwnd, GWL_STYLE ) & WS_VISIBLE))
{
ShowWindow( hwnd, SW_SHOWNORMAL ); /* SW_SHOW doesn't always work */
+ UpdateWindow( hwnd );
}
return hwnd;
}
--
2.1.1

View File

@@ -0,0 +1,4 @@
Author: Sebastian Lackner
Subject: Call UpdateWindow during DIALOG_CreateIndirect.
Revision: 1
Fixes: [35652] Send WM_PAINT event during dialog creation