我已使用WM_CTLCOLOREDIT
绘制了编辑框的背景颜色,现在在输入/添加文字时,它是重叠的。怎么避免这个?
case WM_CTLCOLOREDIT:
{
if(IDC_TEXT1 == GetDlgCtrlID((HWND)lParam))
{
textArea1Brush = CreateSolidBrush(RGB(198, 226, 255));
SetBkMode((HDC)wParam, TRANSPARENT);
return(LONG)textArea1Brush;
}
break;
}