Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
174b7b51
Commit
174b7b51
authored
Feb 27, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Feb 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Update controls based on a property when that property changes.
parent
5e2bc5b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
dialog.c
dlls/msi/dialog.c
+14
-0
No files found.
dlls/msi/dialog.c
View file @
174b7b51
...
...
@@ -50,12 +50,14 @@ extern HINSTANCE msi_hInstance;
struct
msi_control_tag
;
typedef
struct
msi_control_tag
msi_control
;
typedef
UINT
(
*
msi_handler
)(
msi_dialog
*
,
msi_control
*
,
WPARAM
);
typedef
void
(
*
msi_update
)(
msi_dialog
*
,
msi_control
*
);
struct
msi_control_tag
{
struct
list
entry
;
HWND
hwnd
;
msi_handler
handler
;
msi_update
update
;
LPWSTR
property
;
LPWSTR
value
;
HBITMAP
hBitmap
;
...
...
@@ -564,6 +566,16 @@ static HICON msi_load_icon( MSIDATABASE *db, LPCWSTR text, UINT attributes )
return
msi_load_image
(
db
,
text
,
IMAGE_ICON
,
cx
,
cy
,
flags
);
}
static
void
msi_dialog_update_controls
(
msi_dialog
*
dialog
,
LPCWSTR
property
)
{
msi_control
*
control
;
LIST_FOR_EACH_ENTRY
(
control
,
&
dialog
->
controls
,
msi_control
,
entry
)
{
if
(
!
lstrcmpW
(
control
->
property
,
property
)
&&
control
->
update
)
control
->
update
(
dialog
,
control
);
}
}
/* called from the Control Event subscription code */
void
msi_dialog_handle_event
(
msi_dialog
*
dialog
,
LPCWSTR
control
,
...
...
@@ -855,6 +867,7 @@ static UINT msi_dialog_checkbox_control( msi_dialog *dialog, MSIRECORD *rec )
control
=
msi_dialog_add_control
(
dialog
,
rec
,
szButton
,
BS_CHECKBOX
|
BS_MULTILINE
|
WS_TABSTOP
);
control
->
handler
=
msi_dialog_checkbox_handler
;
control
->
update
=
msi_dialog_checkbox_sync_state
;
prop
=
MSI_RecordGetString
(
rec
,
9
);
if
(
prop
)
{
...
...
@@ -3083,6 +3096,7 @@ static UINT msi_dialog_set_property( msi_dialog *dialog, LPCWSTR event, LPCWSTR
if
(
strcmpW
(
szNullArg
,
arg
)
)
deformat_string
(
dialog
->
package
,
arg
,
&
arg_fmt
);
MSI_SetPropertyW
(
dialog
->
package
,
prop
,
arg_fmt
);
msi_dialog_update_controls
(
dialog
,
prop
);
msi_free
(
arg_fmt
);
}
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