[MSPAINT] Fix textbox background by using WM_CTLCOLOREDIT

CORE-18867
This commit is contained in:
Katayama Hirofumi MZ 2023-05-31 13:21:01 +09:00
parent 2626c724e9
commit aeffa57ec7
2 changed files with 9 additions and 0 deletions

View file

@ -766,3 +766,10 @@ VOID CCanvasWindow::EndSelectionDrag(POINT ptUnZoomed)
m_hitSelection = HIT_NONE;
Invalidate(FALSE);
}
LRESULT CCanvasWindow::OnCtlColorEdit(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
SetTextColor((HDC)wParam, paletteModel.GetFgColor());
SetBkMode((HDC)wParam, TRANSPARENT);
return (LRESULT)GetStockObject(NULL_BRUSH);
}