Ilya Shpigor : msi: Subscribe to SetProgress event on adding progress bar control to dialog.
Alexandre Julliard
julliard at winehq.org
Thu May 21 09:35:53 CDT 2009
Module: wine
Branch: master
Commit: 6c64da8b7ca0303ca61b6442f9900366418260bd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6c64da8b7ca0303ca61b6442f9900366418260bd
Author: Ilya Shpigor <shpigor at etersoft.ru>
Date: Tue May 19 17:16:47 2009 +0400
msi: Subscribe to SetProgress event on adding progress bar control to dialog.
---
dlls/msi/dialog.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index df79a37..495e033 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -135,6 +135,8 @@ static const WCHAR szMaskedEdit[] = { 'M','a','s','k','e','d','E','d','i','t',0
static const WCHAR szPathEdit[] = { 'P','a','t','h','E','d','i','t',0 };
static const WCHAR szProgressBar[] = {
'P','r','o','g','r','e','s','s','B','a','r',0 };
+static const WCHAR szSetProgress[] = {
+ 'S','e','t','P','r','o','g','r','e','s','s',0 };
static const WCHAR szRadioButtonGroup[] = {
'R','a','d','i','o','B','u','t','t','o','n','G','r','o','u','p',0 };
static const WCHAR szIcon[] = { 'I','c','o','n',0 };
@@ -1571,7 +1573,14 @@ end:
static UINT msi_dialog_progress_bar( msi_dialog *dialog, MSIRECORD *rec )
{
- msi_dialog_add_control( dialog, rec, PROGRESS_CLASSW, WS_VISIBLE );
+ msi_control *control;
+
+ control = msi_dialog_add_control( dialog, rec, PROGRESS_CLASSW, WS_VISIBLE );
+ if( !control )
+ return ERROR_FUNCTION_FAILED;
+
+ ControlEvent_SubscribeToEvent( dialog->package, dialog,
+ szSetProgress, control->name, szProgress );
return ERROR_SUCCESS;
}
More information about the wine-cvs
mailing list