forked from Mirrors/wine-wine
msi: Implement the Reset control event.
parent
8193d97bfd
commit
188365e2f0
|
@ -1512,6 +1512,12 @@ static UINT msi_dialog_evaluate_control_conditions( msi_dialog *dialog )
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UINT msi_dialog_reset( msi_dialog *dialog )
|
||||||
|
{
|
||||||
|
/* FIXME: should restore the original values of any properties we changed */
|
||||||
|
return msi_dialog_evaluate_control_conditions( dialog );
|
||||||
|
}
|
||||||
|
|
||||||
/* figure out the height of 10 point MS Sans Serif */
|
/* figure out the height of 10 point MS Sans Serif */
|
||||||
static INT msi_dialog_get_sans_serif_height( HWND hwnd )
|
static INT msi_dialog_get_sans_serif_height( HWND hwnd )
|
||||||
{
|
{
|
||||||
|
|
|
@ -243,6 +243,13 @@ static UINT ControlEvent_SetTargetPath(MSIPACKAGE* package, LPCWSTR argument,
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static UINT ControlEvent_Reset(MSIPACKAGE* package, LPCWSTR argument,
|
||||||
|
msi_dialog* dialog)
|
||||||
|
{
|
||||||
|
msi_dialog_reset(dialog);
|
||||||
|
return ERROR_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Subscribed events
|
* Subscribed events
|
||||||
*/
|
*/
|
||||||
|
@ -371,6 +378,7 @@ struct _events Events[] = {
|
||||||
{ "Remove",ControlEvent_Remove },
|
{ "Remove",ControlEvent_Remove },
|
||||||
{ "AddSource",ControlEvent_AddSource },
|
{ "AddSource",ControlEvent_AddSource },
|
||||||
{ "SetTargetPath",ControlEvent_SetTargetPath },
|
{ "SetTargetPath",ControlEvent_SetTargetPath },
|
||||||
|
{ "Reset",ControlEvent_Reset },
|
||||||
{ NULL,NULL },
|
{ NULL,NULL },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -414,6 +414,7 @@ extern void msi_dialog_destroy( msi_dialog* );
|
||||||
extern BOOL msi_dialog_register_class( void );
|
extern BOOL msi_dialog_register_class( void );
|
||||||
extern void msi_dialog_unregister_class( void );
|
extern void msi_dialog_unregister_class( void );
|
||||||
extern void msi_dialog_handle_event( msi_dialog*, LPCWSTR, LPCWSTR, MSIRECORD * );
|
extern void msi_dialog_handle_event( msi_dialog*, LPCWSTR, LPCWSTR, MSIRECORD * );
|
||||||
|
extern UINT msi_dialog_reset( msi_dialog *dialog );
|
||||||
|
|
||||||
/* preview */
|
/* preview */
|
||||||
extern MSIPREVIEW *MSI_EnableUIPreview( MSIDATABASE * );
|
extern MSIPREVIEW *MSI_EnableUIPreview( MSIDATABASE * );
|
||||||
|
|
Loading…
Reference in New Issue