Alexandre Julliard : browseui: Make sure that common controls are loaded before creating the dialog.
Alexandre Julliard
julliard at winehq.org
Tue Nov 22 13:06:44 CST 2011
Module: wine
Branch: master
Commit: 01593894846537244d938cbbf1c746d5db970efe
URL: http://source.winehq.org/git/wine.git/?a=commit;h=01593894846537244d938cbbf1c746d5db970efe
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Nov 22 14:15:23 2011 +0100
browseui: Make sure that common controls are loaded before creating the dialog.
---
dlls/browseui/Makefile.in | 2 +-
dlls/browseui/progressdlg.c | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/browseui/Makefile.in b/dlls/browseui/Makefile.in
index 102b9e6..b463cd7 100644
--- a/dlls/browseui/Makefile.in
+++ b/dlls/browseui/Makefile.in
@@ -1,5 +1,5 @@
MODULE = browseui.dll
-IMPORTS = uuid ole32 user32 advapi32
+IMPORTS = uuid ole32 comctl32 user32 advapi32
EXTRADEFS = -DCOM_NO_WINDOWS_H
C_SRCS = \
diff --git a/dlls/browseui/progressdlg.c b/dlls/browseui/progressdlg.c
index 2de858c..9b970e2 100644
--- a/dlls/browseui/progressdlg.c
+++ b/dlls/browseui/progressdlg.c
@@ -304,6 +304,7 @@ static ULONG WINAPI ProgressDialog_Release(IProgressDialog *iface)
static HRESULT WINAPI ProgressDialog_StartProgressDialog(IProgressDialog *iface, HWND hwndParent, IUnknown *punkEnableModeless, DWORD dwFlags, LPCVOID reserved)
{
+ static const INITCOMMONCONTROLSEX init = { sizeof(init), ICC_ANIMATE_CLASS };
ProgressDialog *This = impl_from_IProgressDialog(iface);
struct create_params params;
HANDLE hThread;
@@ -316,6 +317,8 @@ static HRESULT WINAPI ProgressDialog_StartProgressDialog(IProgressDialog *iface,
if (dwFlags & PROGDLG_NOTIME)
FIXME("Flags PROGDLG_NOTIME not supported\n");
+ InitCommonControlsEx( &init );
+
EnterCriticalSection(&This->cs);
if (This->hwnd)
More information about the wine-cvs
mailing list