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

This commit is contained in:
Zach Gorman 2004-08-16 23:17:44 +00:00 committed by Alexandre Julliard
parent e3a288f474
commit 9b68d0f993
1 changed files with 4 additions and 1 deletions

View File

@ -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.
*/