mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:52:57 +00:00
[MSPAINT] Don't show canvas size boxes if textEditWindow is shown
CORE-18867
This commit is contained in:
parent
17bdf55474
commit
f6bd638b4d
1 changed files with 3 additions and 1 deletions
|
@ -96,6 +96,8 @@ VOID CCanvasWindow::GetImageRect(RECT& rc)
|
||||||
|
|
||||||
CANVAS_HITTEST CCanvasWindow::CanvasHitTest(POINT pt)
|
CANVAS_HITTEST CCanvasWindow::CanvasHitTest(POINT pt)
|
||||||
{
|
{
|
||||||
|
if (selectionModel.m_bShow || ::IsWindowVisible(textEditWindow))
|
||||||
|
return HIT_INNER;
|
||||||
RECT rcBase = GetBaseRect();
|
RECT rcBase = GetBaseRect();
|
||||||
return getSizeBoxHitTest(pt, &rcBase);
|
return getSizeBoxHitTest(pt, &rcBase);
|
||||||
}
|
}
|
||||||
|
@ -112,7 +114,7 @@ VOID CCanvasWindow::DoDraw(HDC hDC, RECT& rcClient, RECT& rcPaint)
|
||||||
|
|
||||||
// Draw the sizeboxes if necessary
|
// Draw the sizeboxes if necessary
|
||||||
RECT rcBase = GetBaseRect();
|
RECT rcBase = GetBaseRect();
|
||||||
if (!selectionModel.m_bShow)
|
if (!selectionModel.m_bShow && !::IsWindowVisible(textEditWindow))
|
||||||
drawSizeBoxes(hdcMem0, &rcBase, FALSE, &rcPaint);
|
drawSizeBoxes(hdcMem0, &rcBase, FALSE, &rcPaint);
|
||||||
|
|
||||||
// Calculate image size
|
// Calculate image size
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue