https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c888a13c0b4bf216162fc…
commit c888a13c0b4bf216162fcd734cda051596632821
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Tue Mar 14 11:03:20 2023 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Tue Mar 14 11:03:20 2023 +0900
[NOTEPAD] Save searchString and replaceString settings
CORE-18837
---
base/applications/notepad/settings.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/base/applications/notepad/settings.c b/base/applications/notepad/settings.c
index e9abc643324..92039ffa18d 100644
--- a/base/applications/notepad/settings.c
+++ b/base/applications/notepad/settings.c
@@ -171,6 +171,9 @@ void NOTEPAD_LoadSettingsFromRegistry(void)
QueryDword(hKey, _T("iWindowPosY"),
(DWORD*)&Globals.main_rect.top);
QueryDword(hKey, _T("iWindowPosDX"), &cx);
QueryDword(hKey, _T("iWindowPosDY"), &cy);
+
+ QueryString(hKey, _T("searchString"), Globals.szFindText,
ARRAY_SIZE(Globals.szFindText));
+ QueryString(hKey, _T("replaceString"), Globals.szReplaceText,
ARRAY_SIZE(Globals.szReplaceText));
}
Globals.lfFont.lfHeight = HeightFromPointSize(dwPointSize);
@@ -270,6 +273,8 @@ void NOTEPAD_SaveSettingsToRegistry(void)
SaveDword(hKey, _T("iWindowPosY"), Globals.main_rect.top);
SaveDword(hKey, _T("iWindowPosDX"), Globals.main_rect.right -
Globals.main_rect.left);
SaveDword(hKey, _T("iWindowPosDY"), Globals.main_rect.bottom -
Globals.main_rect.top);
+ SaveString(hKey, _T("searchString"), Globals.szFindText);
+ SaveString(hKey, _T("replaceString"), Globals.szReplaceText);
RegCloseKey(hKey);
}