Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
7500e0fe
Commit
7500e0fe
authored
Jun 09, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Update the progress control while installing.
parent
ea3ab495
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
5 deletions
+27
-5
dialog.c
dlls/msi/dialog.c
+27
-5
No files found.
dlls/msi/dialog.c
View file @
7500e0fe
...
...
@@ -62,6 +62,8 @@ struct msi_control_tag
HICON
hIcon
;
LPWSTR
tabnext
;
HMODULE
hDll
;
float
progress_current
;
float
progress_max
;
WCHAR
name
[
1
];
};
...
...
@@ -335,6 +337,8 @@ static msi_control *msi_dialog_create_window( msi_dialog *dialog,
control
->
hIcon
=
NULL
;
control
->
hDll
=
NULL
;
control
->
tabnext
=
strdupW
(
MSI_RecordGetString
(
rec
,
11
)
);
control
->
progress_current
=
0
;
control
->
progress_max
=
100
;
x
=
MSI_RecordGetInteger
(
rec
,
4
);
y
=
MSI_RecordGetInteger
(
rec
,
5
);
...
...
@@ -479,11 +483,29 @@ void msi_dialog_handle_event( msi_dialog* dialog, LPCWSTR control,
}
else
if
(
!
lstrcmpW
(
attribute
,
szProgress
)
)
{
/* FIXME: should forward to progress bar */
static
int
display_fixme
=
1
;
if
(
display_fixme
)
FIXME
(
"Attribute %s not being set
\n
"
,
debugstr_w
(
attribute
));
display_fixme
=
0
;
DWORD
func
,
val
;
func
=
MSI_RecordGetInteger
(
rec
,
1
);
val
=
MSI_RecordGetInteger
(
rec
,
2
);
switch
(
func
)
{
case
0
:
/* init */
ctrl
->
progress_max
=
val
;
ctrl
->
progress_current
=
0
;
SendMessageW
(
ctrl
->
hwnd
,
PBM_SETRANGE
,
0
,
MAKELPARAM
(
0
,
100
));
SendMessageW
(
ctrl
->
hwnd
,
PBM_SETPOS
,
0
,
0
);
break
;
case
1
:
/* FIXME: not sure what this is supposed to do */
break
;
case
2
:
/* move */
ctrl
->
progress_current
+=
val
;
SendMessageW
(
ctrl
->
hwnd
,
PBM_SETPOS
,
100
*
(
ctrl
->
progress_current
/
ctrl
->
progress_max
),
0
);
break
;
default:
ERR
(
"Unknown progress message %ld
\n
"
,
func
);
break
;
}
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment