Commit 454dff6f authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Fix radio button groups. Don't add the WS_GROUP style to every

window.
parent 731dfdb3
...@@ -282,7 +282,7 @@ static msi_control *msi_dialog_create_window( msi_dialog *dialog, ...@@ -282,7 +282,7 @@ static msi_control *msi_dialog_create_window( msi_dialog *dialog,
LPWSTR font = NULL, title = NULL; LPWSTR font = NULL, title = NULL;
msi_control *control; msi_control *control;
style |= WS_CHILD | WS_GROUP; style |= WS_CHILD;
control = HeapAlloc( GetProcessHeap(), 0, control = HeapAlloc( GetProcessHeap(), 0,
sizeof *control + strlenW(name)*sizeof(WCHAR) ); sizeof *control + strlenW(name)*sizeof(WCHAR) );
...@@ -617,20 +617,20 @@ static UINT msi_dialog_radiogroup_control( msi_dialog *dialog, MSIRECORD *rec ) ...@@ -617,20 +617,20 @@ static UINT msi_dialog_radiogroup_control( msi_dialog *dialog, MSIRECORD *rec )
MSIQUERY *view = NULL; MSIQUERY *view = NULL;
radio_button_group_descr group; radio_button_group_descr group;
MSIPACKAGE *package = dialog->package; MSIPACKAGE *package = dialog->package;
WNDPROC oldproc;
prop = MSI_RecordGetString( rec, 9 ); prop = MSI_RecordGetString( rec, 9 );
TRACE("%p %p %s\n", dialog, rec, debugstr_w( prop )); TRACE("%p %p %s\n", dialog, rec, debugstr_w( prop ));
/* Create parent group box to hold radio buttons */ /* Create parent group box to hold radio buttons */
control = msi_dialog_add_control( dialog, rec, szButton, BS_OWNERDRAW ); control = msi_dialog_add_control( dialog, rec, szButton, BS_OWNERDRAW|WS_GROUP );
if( !control )
return ERROR_FUNCTION_FAILED;
if (control->hwnd) oldproc = (WNDPROC) SetWindowLongPtrW( control->hwnd, GWLP_WNDPROC,
{ (LONG_PTR)MSIRadioGroup_WndProc );
WNDPROC oldproc = (WNDPROC) SetWindowLongPtrW(control->hwnd, GWLP_WNDPROC, SetPropW(control->hwnd, szButtonData, oldproc);
(LONG_PTR)MSIRadioGroup_WndProc);
SetPropW(control->hwnd, szButtonData, oldproc);
}
if( prop ) if( prop )
control->property = strdupW( prop ); control->property = strdupW( prop );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment