Katayama Hirofumi MZ
d40de8f47c
[MSPAINT] Add Static Edge to toolbars
...
- Add WS_EX_STATICEDGE to paletteWindow.
- Remove CCS_NODIVIDER from toolbar.
CORE-18867
2023-03-17 19:18:07 +09:00
Katayama Hirofumi MZ
868c7c4d53
[MSPAINT] Delete useless "STATIC" control
...
CORE-18867
2023-03-17 19:01:42 +09:00
Katayama Hirofumi MZ
eacf003c81
[MSPAINT] Move UpdateCanvas's code to newly-defined CCanvasWindow::Update
...
CORE-18867
2023-03-17 07:51:12 +09:00
Katayama Hirofumi MZ
7361592ede
[MSPAINT] Rename scrollbox as canvas
...
- s/CScrollboxWindow/CCanvasWindow/
- s/scrollboxWindow/canvasWindow/
- s/UpdateScrollbox/UpdateCanvas/
CORE-18867
2023-03-17 07:45:14 +09:00
Katayama Hirofumi MZ
a88dcbd6c3
[MSPAINT] Remove extra scrlClientWindow ( #5162 )
...
CORE-18867
2023-03-17 07:28:42 +09:00
Katayama Hirofumi MZ
41c30182d4
[MSPAINT] Refactor about Recent Files ( #5163 )
...
Define MAX_RECENT_FILES macro as 4.
Remove strFile1, ..., strFile4 settings and add strFiles[MAX_RECENT_FILES] for Most Recently Used (MRU) files.
CORE-18867
2023-03-17 07:28:01 +09:00
Katayama Hirofumi MZ
a81f229065
[MSPAINT] Restore the main window saved show state ( #5158 )
...
Our mspaint didn't remember the maximized status of the main window. CORE-18867
2023-03-17 07:26:44 +09:00
Katayama Hirofumi MZ
88733bca77
[MSPAINT] Unlink HHCTRL.OCX and use dynamic load ( #5165 )
...
Unlink HHCTRL.OCX by modifying CMakeLists.txt. Add DoHtmlHelpW helper function. CORE-18879, CORE-18867
2023-03-17 07:25:51 +09:00
Katayama Hirofumi MZ
0cf45d508c
[MSPAINT] Delete needless CMainWindow::OnSetCursor
...
CORE-18867
2023-03-16 18:13:28 +09:00
Katayama Hirofumi MZ
b5ae55f3ff
[MSPAINT] Delete useless CFullscreenWindow::OnSetCursor
...
CORE-18867
2023-03-16 17:56:05 +09:00
Katayama Hirofumi MZ
b369ec3fa1
[MSPAINT] Delete needless CMiniatureWindow::OnSetCursor
...
CORE-18867
2023-03-16 17:49:05 +09:00
Katayama Hirofumi MZ
34881b9a88
[MSPAINT] Delete needless CToolBox::OnSetCursor
...
CORE-18867
2023-03-16 17:26:27 +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
Robert Naumann
75ac9f8477
[REGEDIT] import Wine commit f5fe9a6 by Hugh McMaster.
...
f5fe9a6cf9
This removes the ROS-diff caused by CORE-18603's fix
2023-03-15 16:54:47 +01:00
Katayama Hirofumi MZ
3625f55fbb
[MSPAINT] Delete unused global variables (lfTextFont, ...
...
hfontTextFont, hwndEditCtl, textToolText, and textToolTextMaxLen).
CORE-18867
2023-03-15 15:09:26 +09:00
Doug Lyons
cce3eb9393
Fix buffer read past end problem. ( #5146 )
...
Fixes crashes in regedit-find affecting CORE-15896 and CORE-18230. After possible RegQueryValueExW append 3 zero bytes to guarantee that we will end with a UNICODE NULL.
2023-03-15 10:57:54 +09:00
Katayama Hirofumi MZ
44b2a46d03
[MSPAINT] Avoid flickering when resizing ( #5144 )
...
- Add CPaletteWindow::OnEraseBkgnd to avoid flickering.
- Add getColorBoxRect and drawColorBox helper functions to draw a color box.
- Add CPaletteWindow::DoHitTest helper function to do a hit test.
- Improve CPaletteWindow::OnPaint by using a memory bitmap.
- Improve readability of CMainWindow::alignChildrenToMainWindow.
CORE-18867
2023-03-15 07:29:25 +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
9b6b1b3513
[MSPAINT] CImageAreaWindow should inherit CWindowImpl<CImgAreaWindow>
...
... instead of CWindowImpl<CMainWindow>.
CORE-18867
2023-03-14 14:17:40 +09:00
Katayama Hirofumi MZ
d91b262590
[MSPAINT] Window class of main window should be 'MSPaintApp'
...
CORE-18867
2023-03-14 14:09:17 +09:00
Katayama Hirofumi MZ
0eeffc2143
[REGEDIT] CMakeLists.txt: Enable _DEBUG on debugging
...
CORE-18876
2023-03-14 12:22:23 +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
19027f3c81
[REGEDIT] Use HeapFree for g_pChildWnd, instead of free()
2023-03-14 12:08:50 +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
5cf947edc7
[REGEDIT] Use _CrtSetDbgFlag to check memory leak
...
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 wWinMain.
This is a follow-up of #5151 (9abd9b6
) and 0998665
.
2023-03-14 07:22:34 +09:00
Katayama Hirofumi MZ
0998665463
[MSPAINT] Use _CrtSetDbgFlag to check memory leak
...
We can borrow the power of CRT debug. These changes are effective for debug version only:
- Insert #include <crtdbg.h> at main.cpp.
- Call _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF) at the prologue of _tWinMain.
This is a follow-up of #5151 (9abd9b6
).
CORE-18867
2023-03-14 07:17:14 +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
b49b47fc84
[MSPAINT] Delete unused HWND hToolBtn[16] global variable
...
CORE-18867
2023-03-11 14:19:12 +09:00
Katayama Hirofumi MZ
9ff9295a22
[MSPAINT] Remember status bar visibility ( #5145 )
...
- Add ShowStatusBar registry setting.
- Save ShowStatusBar status and restore the status on startup.
CORE-18867
2023-03-11 11:41:52 +09:00
Katayama Hirofumi MZ
86e2f9e635
[MSPAINT] There were two "main" windows ( #5147 )
...
Our mspaint had two windows of window class "MainWindow".
class CToolBox should inherit CWindowImpl<CToolBox> instead of CWindowImpl<CMainWindow>.
CORE-18867
2023-03-11 07:42:04 +09:00
Joachim Henze
793e9f20ef
[DXDIAG] Fix text truncation on button for french fr-FR.rc CORE-18853
...
By shortening the text to what MS Windows uses there.
See the 2k3sp2 pic in the ticket.
2023-03-10 18:03:02 +01:00
Katayama Hirofumi MZ
02c647802f
[MSPAINT] Fix use of uninitialized variable on startup ( #5140 )
...
There was an exception in starting up of mspaint of Visual Studio 2019 build. CORE-18594, CORE-18867
2023-03-10 07:31:31 +09:00
Joachim Henze
29d0deef13
[DXDIAG] Fix text truncation german de-DE.rc CORE-18853 ( #5137 )
2023-03-09 23:27:49 +01: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
Hermès Bélusca-Maïto
abece16776
[WORDPAD][WRITE] Remove redundant pragma code_page(65001)...
...
... since this is done in the main RC file, from which the per-language
resource files are included.
2023-03-09 00:13:59 +01: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
Thomas Faber
1ee9ea4518
[REGEDIT] Avoid buffer overflow in SelectNode. CORE-18602
2023-03-07 19:43:57 -05:00
Thomas Faber
910822b8f5
[REGEDIT] Add back import prompt message lost during Wine sync. CORE-18770
2023-03-07 19:41:51 -05: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
Atharva Kulkarni
72974d2bac
[MSPAINT] Treat as a file even if the bitmap file is empty
...
CORE-18508
2023-03-05 20:53:38 +09:00
Carlo Bramini
6d57c6c91c
[CMDUTILS] Add Italian (it-IT) translation for WHERE command
2023-03-01 22:05:04 +01: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