Notepad fixes:

1.  Fixed accelerator keys for new commands
2.  Properly parented Find/Replace dialog
3.  Typo in comment


svn path=/trunk/; revision=18143
This commit is contained in:
Nathan Woods 2005-09-28 22:57:21 +00:00
parent 708722cfd9
commit 8c42366a42
3 changed files with 4 additions and 2 deletions

View file

@ -263,7 +263,7 @@ VOID DIALOG_FileNew(VOID)
{
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);

View file

@ -194,7 +194,7 @@ static BOOL NOTEPAD_FindNext(FINDREPLACE *pFindReplace, BOOL bReplace, BOOL bSho
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;
}

View file

@ -30,6 +30,8 @@ ID_ACCEL ACCELERATORS
"^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