OK button should be default in non-wizard property sheets.
This commit is contained in:
parent
e3a288f474
commit
9b68d0f993
|
@ -936,7 +936,7 @@ static BOOL PROPSHEET_AdjustButtons(HWND hwndParent, PropSheetInfo* psInfo)
|
||||||
y = rcSheet.bottom - (padding.y + buttonHeight);
|
y = rcSheet.bottom - (padding.y + buttonHeight);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Position OK button.
|
* Position OK button and make it default.
|
||||||
*/
|
*/
|
||||||
hwndButton = GetDlgItem(hwndParent, IDOK);
|
hwndButton = GetDlgItem(hwndParent, IDOK);
|
||||||
|
|
||||||
|
@ -945,6 +945,9 @@ static BOOL PROPSHEET_AdjustButtons(HWND hwndParent, PropSheetInfo* psInfo)
|
||||||
SetWindowPos(hwndButton, 0, x, y, 0, 0,
|
SetWindowPos(hwndButton, 0, x, y, 0, 0,
|
||||||
SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE);
|
SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE);
|
||||||
|
|
||||||
|
SendMessageA(hwndParent, DM_SETDEFID, IDOK, 0);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Position Cancel button.
|
* Position Cancel button.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue