0
我試着做下面的事情,但框架/邊框沒有顯示出來。我嘗試了FrameRect和Rectangle。 任何想法,爲什麼這不工作?編輯控制邊框和WM_CTLCOLOREDIT?
case WM_CTLCOLOREDIT:
{
HDC hdC = (HDC)wParam;
SetTextColor(hdC, RGB(112,112,112));
SetBkMode(hdC, TRANSPARENT);
RECT rect;
GetClientRect((HWND)lParam, &rect);
HBRUSH hBrush = CreateSolidBrush(RGB(209,209,209));
//FrameRect(hdC, &rect, hBrush);
Rectangle(hdC, (int)rect.left, (int)rect.top, (int)rect.right, (int)rect.bottom);
DeleteObject(hBrush);
LOGBRUSH lb;
lb.lbStyle = BS_SOLID;
lb.lbColor = RGB(249,249,249);
lb.lbHatch = 0;
return (LRESULT)CreateBrushIndirect(&lb);
}
break;