OK button should be default in non-wizard property sheets
Zach Gorman
zach at archetypeauction.com
Sat Aug 14 20:21:03 CDT 2004
Changelog: OK button should be default in non-wizard property sheets
Currently, the SetWizButtons() call in the WM_INITDIALOG handler makes
Next the default button. This takes default status away from OK. This
Patch makes OK default again in non-wizard mode.
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/propsheet.c,v
retrieving revision 1.105
diff -u -r1.105 propsheet.c
--- propsheet.c 9 Aug 2004 22:54:14 -0000 1.105
+++ propsheet.c 15 Aug 2004 01:16:18 -0000
@@ -936,7 +936,7 @@
y = rcSheet.bottom - (padding.y + buttonHeight);
/*
- * Position OK button.
+ * Position OK button and make it default.
*/
hwndButton = GetDlgItem(hwndParent, IDOK);
@@ -944,6 +944,9 @@
SetWindowPos(hwndButton, 0, x, y, 0, 0,
SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE);
+
+ SendMessageA(hwndParent, DM_SETDEFID, IDOK, 0);
+
/*
* Position Cancel button.
More information about the wine-patches
mailing list