mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
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:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user