History log of /reactos/base/applications/mspaint/main.cpp (Results 1 – 25 of 58)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 6af1813f 17-Mar-2024 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Support JPEG/PNG/GIF/TIFF wallpapers (#6632)

Improve usability.
JIRA issue: CORE-19485
- Enable the menu items to set the wallpapars.
- Save the current bitmap as file Wallpaper1.bmp

[MSPAINT] Support JPEG/PNG/GIF/TIFF wallpapers (#6632)

Improve usability.
JIRA issue: CORE-19485
- Enable the menu items to set the wallpapars.
- Save the current bitmap as file Wallpaper1.bmp
in CSIDL_LOCAL_APPDATA folder.
- Support JPEG/PNG/GIF/TIFF files in
RegistrySettings::SetWallpaper.

show more ...


# e928b427 28-Feb-2024 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Improve GetSelectionContents for free-shape selection (#6554)

Follow-up to #6552. There was
a bug that the cropped selection
image is not the shape of selection.
JIRA issue: CORE-19466

[MSPAINT] Improve GetSelectionContents for free-shape selection (#6554)

Follow-up to #6552. There was
a bug that the cropped selection
image is not the shape of selection.
JIRA issue: CORE-19466
- Extend SelectionModel::
DrawSelection for drawing
selection flexibly.
- Improve SelectionModel::
GetSelectionContents method.

show more ...


# f53d7eeb 28-Feb-2024 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Implement 'Crop Selection' (#6552)

Improve usability.
JIRA issue: CORE-19466
- Add IDM_CROPSELECTION command in "Edit" menu.
- If no selection, then disable IDM_CROPSELECTION.


# b8598e09 25-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Improve Undo/Redo handling of selection (#6035)

Consistent behavior of the application.
- Add ShiftPtStack and BuildMaskFromPtStack
helper functions.
- Move some codes of selectionMod

[MSPAINT] Improve Undo/Redo handling of selection (#6035)

Consistent behavior of the application.
- Add ShiftPtStack and BuildMaskFromPtStack
helper functions.
- Move some codes of selectionModel to
mouse.cpp.
CORE-19226

show more ...


# f710e5a2 24-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Define SelectionBaseTool and use it (#6034)

Refactoring and arrangement for selection handling.
- Move some selection-related codes in canvas.cpp to mouse.cpp.
- Add SelectionBaseTool st

[MSPAINT] Define SelectionBaseTool and use it (#6034)

Refactoring and arrangement for selection handling.
- Move some selection-related codes in canvas.cpp to mouse.cpp.
- Add SelectionBaseTool structure for FreeSelTool and RectSelTool.
CORE-19094

show more ...


# bf13ebda 23-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Delete winproc.cpp and move code to main.cpp

Refactoring. This will reduce build time a little.
CORE-19094


# fa4b38d9 04-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Localize g_ptStart and g_ptEnd into mouse.cpp

And move some ToolsModel code into mouse.cpp
CORE-19094


# b69a7460 04-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Fix filter string UNICODE_NULL problem

Follow-up to #5882.
Some ATL CString do not append the string if there is
a UNICODE_NULL in the middle.
CORE-19094


# 640d67d1 04-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Adapt to Unicode and <strsafe.h> (#5882)

- TCHAR --> WCHAR
- LPTSTR --> LPWSTR
- LPCTSTR --> LPCWSTR
- CString --> CStringW
- TEXT("...") --> L"..."
- _T("...") --> L"..."
- ::SendMe

[MSPAINT] Adapt to Unicode and <strsafe.h> (#5882)

- TCHAR --> WCHAR
- LPTSTR --> LPWSTR
- LPCTSTR --> LPCWSTR
- CString --> CStringW
- TEXT("...") --> L"..."
- _T("...") --> L"..."
- ::SendMessage( --> ::SendMessageW(
- ::GetWindowText( --> ::GetWindowTextW(
- ::SetWindowText( --> ::SetWindowTextW(
- Replace _tcscat with StringCchCatW.
- Replace _tcslen with wcslen.
etc. CORE-19094

show more ...


# d7ece626 03-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Fix Copy-To-File feature (#5877)

The Copy-To-File feature had some bugs that the user couldn't save.
- Modify SelectionModel::GetSelectionContents.
- Delete SelectionModel::CopyBitmap, S

[MSPAINT] Fix Copy-To-File feature (#5877)

The Copy-To-File feature had some bugs that the user couldn't save.
- Modify SelectionModel::GetSelectionContents.
- Delete SelectionModel::CopyBitmap, SelectionModel::LockBitmap,
and SelectionModel::UnlockBitmap functions.
CORE-19186

show more ...


# ab199cc1 24-Oct-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Show out-of-memory message (#5817)

- Improve ImageModel::PushImageForUndo.
- Use FormatMessage in newly added
ShowOutOfMemory function.
- Call ShowOutOfMemory() when out of memory.
C

[MSPAINT] Show out-of-memory message (#5817)

- Improve ImageModel::PushImageForUndo.
- Use FormatMessage in newly added
ShowOutOfMemory function.
- Call ShowOutOfMemory() when out of memory.
CORE-19227, CORE-19094

show more ...


# 1c4bf2d7 13-Oct-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Don't include useless <mapicode.h>

CORE-19094


# 9a51c8e6 12-Oct-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT][NOTEPAD][REGEDIT] Don't use CRTDBG for these apps (#5788)

Don't include <crtdbg.h>.
Don't use _CrtSetDbgFlag.


# bbb33a6e 22-Sep-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Don't show error message twice (#5715)

- Reduce display of error message on IDM_EDITCOPYTO and IDM_EDITPASTEFROM.
- Introduce LockBitmap/UnlockBitmap mechanism for ImageModel and Selectio

[MSPAINT] Don't show error message twice (#5715)

- Reduce display of error message on IDM_EDITCOPYTO and IDM_EDITPASTEFROM.
- Introduce LockBitmap/UnlockBitmap mechanism for ImageModel and SelectionModel.
CORE-19181, CORE-19182

show more ...


# ba53f72a 09-Aug-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Send mail with image (retry) (#5404)

- Add OpenMailer function.
- Add IDS_CANTSENDMAIL.
- Send a mail by using mapi32!MAPISendMail/W.
- Extend SaveDIBToFile function by adding a
para

[MSPAINT] Send mail with image (retry) (#5404)

- Add OpenMailer function.
- Add IDS_CANTSENDMAIL.
- Send a mail by using mapi32!MAPISendMail/W.
- Extend SaveDIBToFile function by adding a
parameter.
CORE-19094

show more ...


# 3e23cdf9 05-Jul-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Some bug fixes on loading/saving files (#5385)

- Display a correct error message on failing to save a file.
- Don't confuse the main file info and the non-main file info.
- Rename ShowFi

[MSPAINT] Some bug fixes on loading/saving files (#5385)

- Display a correct error message on failing to save a file.
- Don't confuse the main file info and the non-main file info.
- Rename ShowFileLoadError as ShowError, and strengthen and move it to dialogs.cpp.
- Add SetFileInfo and InitializeImage helper functions.
- Add IDS_SAVEERROR resource string.
- Modify SaveDIBToFile, SetBitmapAndInfo, and DoLoadImageFile functions.
CORE-18867

show more ...


# f5200e6c 27-Jun-2023 Stanislav Motylkov <x86corez@gmail.com>

[MSPAINT] Update copyright years for the C++ code

According to Benedikt Freisen, he didn't port the code base to C++
until 2015. Addendum to 8f1f1c7a5a6. CORE-18867


# 8f1f1c7a 23-Jun-2023 Stanislav Motylkov <x86corez@gmail.com>

[MSPAINT] Update copyright headers

Use LGPL-2.0-or-later as the first available LGPL version on SPDX
taking into account 530512f17ec67a42e7971e3d2a9c7a00e35c32d0 commit message.

CORE-18867


# 19d88628 19-Jun-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Fix CMainWindow::GetSaveFileName (#5356)

Fix filename extension cases and "File Type" field. If no filename extension on save, then append ".png" to the filename.
CORE-18867


# e8c7e300 17-Jun-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Establish Undo/Redo management (#5347)

- Painting the canvas is done by overlaying the multiple layers.
- Drawing each overlay is implemented as polymorphism of OOP.
- Refine the Undo/Re

[MSPAINT] Establish Undo/Redo management (#5347)

- Painting the canvas is done by overlaying the multiple layers.
- Drawing each overlay is implemented as polymorphism of OOP.
- Refine the Undo/Redo mechanism.
- Some adjustments.
CORE-17969

show more ...


# 0087ea65 13-Jun-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Set CC_RGBINIT to CMainWindow::ChooseColor

It had failed to set initial color. CORE-18867


# 29e147be 28-Mar-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT][ATL] Encapsulation: mainWindow (#5178)

- Add DoCreate methods to CFullscreenWindow, CMiniatureWindow, and CMainWindow classes.
- Do encapsulation around mainWindow and _tWinMain.
- Add G

[MSPAINT][ATL] Encapsulation: mainWindow (#5178)

- Add DoCreate methods to CFullscreenWindow, CMiniatureWindow, and CMainWindow classes.
- Do encapsulation around mainWindow and _tWinMain.
- Add GetOpenFileName, GetSaveFileName, and ChooseColor helper methods to CMainWindow class.
- Move some code in WinMain into CMainWindow::OnCreate.
- Delay creation of CFullscreenWindow and CMiniatureWindow.
- Extend ATL CImage class as CImageDx in newly-created atlimagedx.h of mspaint.
CORE-18867

show more ...


# 5c8d578a 22-Mar-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Simplify OFNHookProc and FileExtFromFilter

... by using PathFindExtension and PathFindFileName.
CORE-18867


# 57891b5f 21-Mar-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Tool settings: Reduce magic numbers (#5168)

Many coordinates are dynamically calculated. It is adjustable against client area change.
- Fix some brush/eraser shapes for pixel perfection.

[MSPAINT] Tool settings: Reduce magic numbers (#5168)

Many coordinates are dynamically calculated. It is adjustable against client area change.
- Fix some brush/eraser shapes for pixel perfection.
- Reduce magic numbers in toolssettings.cpp.
- Refactoring.
CORE-18867

show more ...


# ed03768b 20-Mar-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Move '#include <crtdbg.h>' and add _CRTDBG_MAP_ALLOC

CORE-18867


123