mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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)
|
||||
{
|
||||
if (selectionModel.m_bShow || ::IsWindowVisible(textEditWindow))
|
||||
return HIT_INNER;
|
||||
RECT rcBase = GetBaseRect();
|
||||
return getSizeBoxHitTest(pt, &rcBase);
|
||||
}
|
||||
|
@ -112,7 +114,7 @@ VOID CCanvasWindow::DoDraw(HDC hDC, RECT& rcClient, RECT& rcPaint)
|
|||
|
||||
// Draw the sizeboxes if necessary
|
||||
RECT rcBase = GetBaseRect();
|
||||
if (!selectionModel.m_bShow)
|
||||
if (!selectionModel.m_bShow && !::IsWindowVisible(textEditWindow))
|
||||
drawSizeBoxes(hdcMem0, &rcBase, FALSE, &rcPaint);
|
||||
|
||||
// Calculate image size
|
||||
|
|
Loading…
Reference in a new issue