mirror of
https://github.com/reactos/reactos.git
synced 2025-06-24 22:20:04 +00:00
[MSPAINT] Make imageArea window-less (#5215)
- Move imageArea code into canvasWindow. - Delete imgarea.cpp, imgarea.h, and imageArea. - Add CCanvasWindow::ImageToCanvas and CCanvasWindow::CanvasToImage to convert the coordinates. - Realize drawing of resizing image area. CORE-18867
This commit is contained in:
parent
fa322c2e14
commit
efe7368c46
16 changed files with 544 additions and 666 deletions
|
@ -141,8 +141,8 @@ void ToolsModel::SetBackgroundTransparent(BOOL bTransparent)
|
|||
{
|
||||
m_transpBg = bTransparent;
|
||||
NotifyToolSettingsChanged();
|
||||
if (imageArea.IsWindow())
|
||||
imageArea.Invalidate(FALSE);
|
||||
if (canvasWindow.IsWindow())
|
||||
canvasWindow.Invalidate(FALSE);
|
||||
}
|
||||
|
||||
int ToolsModel::GetZoom() const
|
||||
|
@ -182,8 +182,8 @@ void ToolsModel::NotifyZoomChanged()
|
|||
toolSettingsWindow.SendMessage(WM_TOOLSMODELZOOMCHANGED);
|
||||
if (textEditWindow.IsWindow())
|
||||
textEditWindow.SendMessage(WM_TOOLSMODELZOOMCHANGED);
|
||||
if (imageArea.IsWindow())
|
||||
imageArea.SendMessage(WM_TOOLSMODELZOOMCHANGED);
|
||||
if (canvasWindow.IsWindow())
|
||||
canvasWindow.SendMessage(WM_TOOLSMODELZOOMCHANGED);
|
||||
}
|
||||
|
||||
void ToolsModel::OnButtonDown(BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue