1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
case WM_CTLCOLORLISTBOX:
{
HDC hdc = reinterpret_cast< HDC >(wParam);
HWND hStatic = reinterpret_cast< HWND >(lParam);
SetBkMode(hdc, TRANSPARENT);
SetTextColor(hdc, 0xFFFFFF);
RECT r, rClient;
GetClientRect(hStatic, &rClient);
GetWindowRect(hStatic, &r);
MapWindowPoints(HWND_DESKTOP, hDlg, reinterpret_cast< LPPOINT >(&r), 2);
BitBlt(hdc, 0, 0, rClient.right, rClient.bottom, hdcBis, r.left, r.top, SRCCOPY);
HBRUSH hBrush = ((HBRUSH)(GetStockObject(NULL_BRUSH)));
return reinterpret_cast< LRESULT >(hBrush);
}
break; |
Partager