Commit 9b68d0f9 authored by Zach Gorman's avatar Zach Gorman Committed by Alexandre Julliard

OK button should be default in non-wizard property sheets.

parent e3a288f4
......@@ -936,7 +936,7 @@ static BOOL PROPSHEET_AdjustButtons(HWND hwndParent, PropSheetInfo* psInfo)
y = rcSheet.bottom - (padding.y + buttonHeight);
/*
* Position OK button.
* Position OK button and make it default.
*/
hwndButton = GetDlgItem(hwndParent, IDOK);
......@@ -945,6 +945,9 @@ static BOOL PROPSHEET_AdjustButtons(HWND hwndParent, PropSheetInfo* psInfo)
SetWindowPos(hwndButton, 0, x, y, 0, 0,
SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE);
SendMessageA(hwndParent, DM_SETDEFID, IDOK, 0);
/*
* Position Cancel button.
*/
......
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