Katayama Hirofumi MZ
9a51c8e6c6
[MSPAINT][NOTEPAD][REGEDIT] Don't use CRTDBG for these apps ( #5788 )
...
Don't include <crtdbg.h>.
Don't use _CrtSetDbgFlag.
2023-10-12 22:53:02 +09:00
Katayama Hirofumi MZ
0ef9cfb04e
[NOTEPAD] Use wait cursor ( #5659 )
...
- Add WaitCursor helper function to display the wait cursor while
heavy operation.
- Manage the wait cursor by using a lock count.
CORE-18837
2023-09-10 22:27:16 +09:00
Stanislav Motylkov
995d255962
[REACTOS] Fix various '% s' typos with a space
...
- [NOTEPAD][REGEDIT][SHELL32] were affected.
- Also while being here, fix headers.
2023-09-07 00:34:02 +03:00
Katayama Hirofumi MZ
289dec6c39
[NOTEPAD] Do type cast to kill C4244 warnings ( #5655 )
...
- Do type cast to int from SendMessage return value.
- Fix usage of EM_GETSEL and EM_LINEINDEX messages.
CORE-18837
2023-09-06 19:26:23 +09:00
Katayama Hirofumi MZ
3f921d1119
[NOTEPAD] Use StringCchPrintf instead ( #5654 )
...
Use preferred string functions. CORE-18837
2023-09-05 22:36:18 +09:00
Tibor Lajos Füzi
3068422d51
[TRANSLATION] Update hungarian translation for mspaint, notepad, taskmgr, explorer, appwiz, browseui, msgina, shell32 ( #5645 )
2023-09-03 17:46:38 +02:00
Andrei Miloiu
d144f3d3bb
[NOTEPAD] Update Romanian (ro-RO) translation ( #5419 )
2023-07-11 18:40:23 +03:00
Milan Raymakers
4782c314d4
[TRANSLATION] Improve Dutch (nl-NL) translation ( #4765 )
...
- [NOTEPAD] Improve Dutch (nl-NL) translation
- [TASKMGR] Improve Dutch (nl-NL) translation
- [WELCOME] Improve Dutch (nl-NL) translation
- [EXPLORER] Improve Dutch (nl-NL) translation
Reviewed-by: Mark Jansen <mark.jansen@reactos.org>
2023-06-10 18:32:03 +03:00
Katayama Hirofumi MZ
c9ed65e0cc
[NOTEPAD] Delete my name from resource copyright text ( #5261 )
...
The copyright text was too long. CORE-18837
2023-04-28 21:48:45 +09:00
valmorflores
2687c1b415
[NOTEPAD][OSK] Improve/Add Portuguese (Brazilian pt-BR and Portugal pt-PT) translations ( #5124 )
...
Co-authored-by: Julen Urizar Compains <julenuri@hotmail.com>
2023-03-31 01:37:45 +02:00
Artyom Ovsyannikov
1fe3ab7823
[NOTEPAD] Russian (ru-RU) translation update ( #5181 )
...
Google Translate helped me to translate some lines.
2023-03-23 14:33:18 +09:00
Katayama Hirofumi MZ
d28e39e409
[NOTEPAD] Use _countof macro from <stdlib.h> ( #5170 )
...
- Remove the definition of ARRAY_SIZE macro.
- Replace ARRAY_SIZE and ARRAYSIZE with _countof.
CORE-18837
2023-03-21 08:59:40 +09:00
Serge Gautherie
3615e7c122
[NOTEPAD] LoadIcon() needs no DestroyIcon() ( #5142 )
...
CORE-18369
2023-03-21 06:19:30 +09:00
Katayama Hirofumi MZ
cc4480ffea
[NOTEPAD] Move '#include <crtdbg.h>' and add _CRTDBG_MAP_ALLOC ( #5176 )
...
CORE-18837
2023-03-20 22:55:12 +09:00
Katayama Hirofumi MZ
136f23578f
[NOTEPAD] Use full path for non-existent file ( #5152 )
...
In HandleCommandLine function, use GetFullPathName API to get the full path of a non-existent file. CORE-18259, CORE-18837
2023-03-16 10:18:54 +09:00
Katayama Hirofumi MZ
f5840df9e9
[NOTEPAD] Delete license.c (no use) ( #5159 )
...
File license.c is not used. Reduce source code. CORE-18837
2023-03-15 07:28:15 +09:00
Katayama Hirofumi MZ
fb1d9d722d
[NOTEPAD] Use new-style file header ( #5160 )
...
CORE-18837
2023-03-15 07:27:29 +09:00
Katayama Hirofumi MZ
598dd51d70
[NOTEPAD] CMakeLists.txt: Enable _DEBUG on debugging
...
CORE-18837
2023-03-14 12:17:40 +09:00
Katayama Hirofumi MZ
0a1d467a11
[NOTEPAD] Add 'katahiromz' to STRING_NOTEPAD_AUTHORS
...
CORE-18837
2023-03-14 11:24:12 +09:00
Katayama Hirofumi MZ
c888a13c0b
[NOTEPAD] Save searchString and replaceString settings
...
CORE-18837
2023-03-14 11:03:20 +09:00
Katayama Hirofumi MZ
9abd9b667a
[NOTEPAD] Use _CrtSetDbgFlag to check memory leak ( #5151 )
...
We can borrow the power of CRT debug. These changes are effective for debug version only:
- Insert #include <crtdbg.h> at main.c.
- Call _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF) at the prologue of _tWinMain.
CORE-18837
2023-03-14 07:08:56 +09:00
Katayama Hirofumi MZ
d0ab35e9da
[NOTEPAD] Refactor around _tWinMain ( #5135 )
...
- Add hInstance parameter to NOTEPAD_InitData.
- Move some code in _tWinMain into NOTEPAD_InitData.
- Move some code in _tWinMain into WM_CREATE handling.
- Move some code in WM_CLOSE handling into WM_DESTROY handling.
- Fix the exit code of _tWinMain.
CORE-18837
2023-03-12 08:26:33 +09:00
Katayama Hirofumi MZ
3b0791547f
[NOTEPAD] Move the printing code to the newly added printing.c
...
CORE-18837
2023-03-12 07:51:53 +09:00
Katayama Hirofumi MZ
072503c1fc
[NOTEPAD] Add 'Now-printing' dialog ( #5127 )
...
Allow the user to cancel the print job.
- Add DIALOG_PRINTING dialog.
- Make the print job another thread.
- Let the thread communicate with the dialog box by PRINTING_MESSAGE.
- Add some resource strings.
CORE-18837
2023-03-11 22:23:14 +09:00
Katayama Hirofumi MZ
87e905ecd8
[NOTEPAD] Use Globals.hMainWnd in ShowLastError ( #5132 )
...
Improving UI/UX by making Globals.hMainWnd the owner of the message box. CORE-18837
2023-03-10 07:25:06 +09:00
Katayama Hirofumi MZ
139809b747
[NOTEPAD] Use DestroyIcon instead of DeleteObject to destroy icon ( #5130 )
...
CORE-18837
2023-03-09 08:24:19 +09:00
Katayama Hirofumi MZ
bc89074cd5
[NOTEPAD] Remove some needless type casts ( #5134 )
...
CORE-18837
2023-03-09 08:23:08 +09:00
Katayama Hirofumi MZ
f91b92c3f9
[NOTEPAD] Delete main.h ( #5133 )
...
Reduce files to improve readability. Move the codes in main.h into notepad.h. Make the size of Globals.szFilter 512.
CORE-18837
2023-03-09 03:41:11 +09:00
Katayama Hirofumi MZ
9ac20a7fe2
[NOTEPAD] Reduce lines in and around comments ( #5131 )
...
Reduce lines. CORE-18837
2023-03-09 03:11:57 +09:00
Katayama Hirofumi MZ
064ac123d1
[NOTEPAD] Improve printing (header/footer/tabs/performance) ( #5111 )
...
- Fix GetPrintingRect function.
- Add DrawHeaderOrFooter, DoPrintBody, DoPrintPage, DoCreatePrintFonts, and DoPrintDocument helper functions.
- Implement page header/footer and tabs printing in DIALOG_FilePrint function.
- Improve printing performance.
- Modify the header/footer resource strings.
- Delete the needless resource strings.
CORE-18837
2023-03-07 14:42:27 +09:00
Katayama Hirofumi MZ
f8c7bd6898
[NOTEPAD] Don't reset Find/Replace if lpstrFindWhat is set ( #5104 )
...
We don't want to reset the status of the checkboxes even if the Find/Replace dialog was closed. If lpstrFindWhat is set, do not reset the Find/Replace settings at DIALOG_SearchDialog. CORE-18837
2023-03-01 20:17:27 +09:00
Katayama Hirofumi MZ
8c7233e015
[NOTEPAD] Fix NOTEPAD_FindTextAt ( #5103 )
...
The whole-word search of Notepad had a bug around punctuation. For example, the text "Windows" didn't match in the text "MS-DOS,Windows,ReactOS". Use _istalnum instead of _istspace. Fix the position to check. _istalnum matches an alphabet letter or numeric digit. CORE-18837
2023-03-01 19:57:10 +09:00
Katayama Hirofumi MZ
55e3feba53
[NOTEPAD] Shift+F3 for backward search ( #5101 )
...
- Add Shift+F3 accelerator as command CMD_SEARCH_PREV.
- Extend DIALOG_SearchNext function with bDown argument for the action of CMD_SEARCH_PREV.
- Modify the message loop for effective F3 key on Find/Replace dialog.
CORE-17064
2023-03-01 07:16:28 +09:00
Katayama Hirofumi MZ
a351943caa
[NOTEPAD] Improve DIALOG_GoTo ( #5082 )
...
- Don't use text directly in DIALOG_GoTo function. Rely the EM_* message handlers.
- Fix and improve DIALOG_GOTO resource dialog (that was wrong in some points).
- Add STRING_LINE_NUMBER_OUT_OF_RANGE.
CORE-18837
2023-02-22 21:18:05 +09:00
Katayama Hirofumi MZ
ead9366ef7
[NOTEPAD] Avoid half-initialized status of settings ( #5078 )
...
- Avoid buffer overrun in QueryString helper function.
- Improve NOTEPAD_LoadSettingsFromRegistry function.
CORE-18837
2023-02-21 09:22:41 +09:00
Katayama Hirofumi MZ
0cd80c17f6
[NOTEPAD] Simplify GetSelectionText ( #5083 )
...
Use EM_GETHANDLE message to get text. CORE-18837
2023-02-20 22:00:49 +09:00
Katayama Hirofumi MZ
f7f2ed201a
[NOTEPAD] Make "UTF-8 without BOM" default ( #5081 )
...
- Define a constant ENCODING_DEFAULT that is equal to ENCODING_UTF8.
- Initialize Globals.encFile as ENCODING_DEFAULT.
- Reset encoding and line ending in DIALOG_FileNew.
- AnalyzeEncoding returns ENCODING_DEFAULT for non-zero ASCII text.
- Remove unnecessary DIALOG_StatusBarAlignParts calls.
CORE-18837
2023-02-20 21:59:16 +09:00
Katayama Hirofumi MZ
504bf68e2a
[NOTEPAD] Simplify FileExists function ( #5079 )
...
Simplify FileExists helper function by using GetFileAttributes function. CORE-18837
2023-02-18 21:40:11 +09:00
Katayama Hirofumi MZ
1fdbc80e58
[NOTEPAD] Follow-up of #5076 ( 621439d
)
...
- Add DIALOG_StatusBarUpdateAll() and use it.
- Fix the status bar initial contents.
2023-02-17 15:17:44 +09:00
Katayama Hirofumi MZ
621439d6f2
[NOTEPAD] Fix and simplify Status Bar handling ( #5076 )
...
- Rename DoCreateStatusBar as DoShowHideStatusBar.
- Simplify WM_SIZE handler.
- Enable/disable CMD_STATUSBAR menu item correctly.
- Make DoShowHideStatusBar independent from DoCreateEditWindow.
2023-02-17 09:23:25 +09:00
Katayama Hirofumi MZ
a5aea8e537
[NOTEPAD] Simplify NOTEPAD_EnableSearchMenu ( #5077 )
2023-02-15 10:15:51 +09:00
Katayama Hirofumi MZ
647b67c1ac
[NOTEPAD] Optimize AnalyzeEncoding
...
CORE-14641
2023-02-14 13:34:20 +09:00
Katayama Hirofumi MZ
361e0c72b8
[NOTEPAD] Follow-up of d3da0cb; *pBytes should be unsigned
...
CORE-14641
2023-02-14 13:25:44 +09:00
Katayama Hirofumi MZ
d3da0cb7ed
[NOTEPAD] Follow-up of #5012 ( 0a851ea
); Fix encoding
...
There was a bug in encoding analyzer.
CORE-14641
2023-02-14 13:12:47 +09:00
Katayama Hirofumi MZ
97db8a258d
[NOTEPAD] Fix and improve DoSaveFile ( #5066 )
...
- Use EM_GETHANDLE to get the text.
- Check zero size and handle it elegantly.
CORE-18832
2023-02-13 08:32:09 +09:00
Katayama Hirofumi MZ
1b20c7312f
[NOTEPAD] Treat empty file correctly ( #5057 )
...
#5012 had a regression on opening an empty file.
CORE-14641, CORE-18826
2023-02-09 21:54:20 +09:00
Katayama Hirofumi MZ
0a851eadcb
[NOTEPAD] Speed up notepad loading ( #5012 )
...
- Use EM_GETHANDLE/EM_SETHANDLE message to get/set the internal buffer handle.
- Use LocalReAlloc to re-allocate the buffer.
- Use file mapping to speed up loading.
- Use also IS_TEXT_UNICODE_REVERSE_STATISTICS for IsTextUnicode.
CORE-14641
2023-02-02 10:10:30 +09:00
Artyom Ovsyannikov
3f411c5da7
[REACTOS] Various Russian (ru-RU) translation fixes ( #4696 )
...
Reviewed-by: Stanislav Motylkov <binarymaster@mail.ru>
2022-09-15 18:46:03 +03:00
Katayama Hirofumi MZ
a5fa4891e5
[NOTEPAD] Follow-up of 'CJK font workaround'
...
- Revert some code.
- Add font name comments.
CORE-11700
2022-09-07 00:54:31 +09:00
Katayama Hirofumi MZ
5ecf017ce2
[NOTEPAD] CJK font workaround
...
Far East Asian users may not have suitable fixed-pitch fonts.
CORE-11700
2022-09-06 15:35:14 +09:00