mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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:
parent
708722cfd9
commit
8c42366a42
3 changed files with 4 additions and 2 deletions
|
@ -263,7 +263,7 @@ VOID DIALOG_FileNew(VOID)
|
||||||
{
|
{
|
||||||
static const WCHAR empty_strW[] = { 0 };
|
static const WCHAR empty_strW[] = { 0 };
|
||||||
|
|
||||||
/* Close any files and promt to save changes */
|
/* Close any files and prompt to save changes */
|
||||||
if (DoCloseFile()) {
|
if (DoCloseFile()) {
|
||||||
SetWindowText(Globals.hEdit, empty_strW);
|
SetWindowText(Globals.hEdit, empty_strW);
|
||||||
SendMessage(Globals.hEdit, EM_EMPTYUNDOBUFFER, 0, 0);
|
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));
|
LoadString(Globals.hInstance, STRING_CANNOTFIND, szResource, SIZEOF(szResource));
|
||||||
_sntprintf(szText, SIZEOF(szText), szResource, pFindReplace->lpstrFindWhat);
|
_sntprintf(szText, SIZEOF(szText), szResource, pFindReplace->lpstrFindWhat);
|
||||||
LoadString(Globals.hInstance, STRING_NOTEPAD, szResource, SIZEOF(szResource));
|
LoadString(Globals.hInstance, STRING_NOTEPAD, szResource, SIZEOF(szResource));
|
||||||
MessageBox(Globals.hEdit, szText, szResource, MB_OK);
|
MessageBox(Globals.hFindReplaceDlg, szText, szResource, MB_OK);
|
||||||
}
|
}
|
||||||
bSuccess = FALSE;
|
bSuccess = FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,8 @@ ID_ACCEL ACCELERATORS
|
||||||
"^A", CMD_SELECT_ALL
|
"^A", CMD_SELECT_ALL
|
||||||
"^C", CMD_COPY
|
"^C", CMD_COPY
|
||||||
"^F", CMD_SEARCH
|
"^F", CMD_SEARCH
|
||||||
|
"^G", CMD_GOTO
|
||||||
|
"^H", CMD_REPLACE
|
||||||
"^O", CMD_OPEN
|
"^O", CMD_OPEN
|
||||||
"^S", CMD_SAVE
|
"^S", CMD_SAVE
|
||||||
"^V", CMD_PASTE
|
"^V", CMD_PASTE
|
||||||
|
|
Loading…
Reference in a new issue