Notepad fixes:
1. Fixed accelerator keys for new commands
2. Properly parented Find/Replace dialog
3. Typo in comment
Modified: trunk/reactos/subsys/system/notepad/dialog.c
Modified: trunk/reactos/subsys/system/notepad/main.c
Modified: trunk/reactos/subsys/system/notepad/rsrc.rc
_____
Modified: trunk/reactos/subsys/system/notepad/dialog.c
--- trunk/reactos/subsys/system/notepad/dialog.c 2005-09-28
22:33:55 UTC (rev 18142)
+++ trunk/reactos/subsys/system/notepad/dialog.c 2005-09-28
22:57:21 UTC (rev 18143)
@@ -263,7 +263,7 @@
{
static const WCHAR empty_strW[] = { 0 };
- /* Close any files and promt to save changes */
+ /* Close any files and prompt to save changes */
if (DoCloseFile()) {
SetWindowText(Globals.hEdit, empty_strW);
SendMessage(Globals.hEdit, EM_EMPTYUNDOBUFFER, 0, 0);
_____
Modified: trunk/reactos/subsys/system/notepad/main.c
--- trunk/reactos/subsys/system/notepad/main.c 2005-09-28 22:33:55 UTC
(rev 18142)
+++ trunk/reactos/subsys/system/notepad/main.c 2005-09-28 22:57:21 UTC
(rev 18143)
@@ -194,7 +194,7 @@
LoadString(Globals.hInstance, STRING_CANNOTFIND,
szResource, SIZEOF(szResource));
_sntprintf(szText, SIZEOF(szText), szResource,
pFindReplace->lpstrFindWhat);
LoadString(Globals.hInstance, STRING_NOTEPAD, szResource,
SIZEOF(szResource));
- MessageBox(Globals.hEdit, szText, szResource, MB_OK);
+ MessageBox(Globals.hFindReplaceDlg, szText, szResource,
MB_OK);
}
bSuccess = FALSE;
}
_____
Modified: trunk/reactos/subsys/system/notepad/rsrc.rc
--- trunk/reactos/subsys/system/notepad/rsrc.rc 2005-09-28 22:33:55 UTC
(rev 18142)
+++ trunk/reactos/subsys/system/notepad/rsrc.rc 2005-09-28 22:57:21 UTC
(rev 18143)
@@ -30,6 +30,8 @@
"^A", CMD_SELECT_ALL
"^C", CMD_COPY
"^F", CMD_SEARCH
+ "^G", CMD_GOTO
+ "^H", CMD_REPLACE
"^O", CMD_OPEN
"^S", CMD_SAVE
"^V", CMD_PASTE