mirror of
https://github.com/reactos/wine.git
synced 2025-02-02 18:25:19 +00:00
msi: The BS_GROUPBOX style should only be used if the HasBorder attribute is set.
This commit is contained in:
parent
93df1675f1
commit
f4eea10bed
@ -1750,13 +1750,20 @@ static UINT msi_dialog_radiogroup_control( msi_dialog *dialog, MSIRECORD *rec )
|
||||
radio_button_group_descr group;
|
||||
MSIPACKAGE *package = dialog->package;
|
||||
WNDPROC oldproc;
|
||||
DWORD attr, style = WS_GROUP;
|
||||
|
||||
prop = MSI_RecordGetString( rec, 9 );
|
||||
|
||||
TRACE("%p %p %s\n", dialog, rec, debugstr_w( prop ));
|
||||
|
||||
attr = MSI_RecordGetInteger( rec, 8 );
|
||||
if (attr & msidbControlAttributesHasBorder)
|
||||
style |= BS_GROUPBOX;
|
||||
else
|
||||
style |= BS_OWNERDRAW;
|
||||
|
||||
/* Create parent group box to hold radio buttons */
|
||||
control = msi_dialog_add_control( dialog, rec, szButton, BS_GROUPBOX|WS_GROUP );
|
||||
control = msi_dialog_add_control( dialog, rec, szButton, style );
|
||||
if( !control )
|
||||
return ERROR_FUNCTION_FAILED;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user