Hi there,
well I'll just get to the point:
I tried two methods,
Code:
SetClassLong(hwnd, GCL_HBRBACKGROUND, (LONG)CreateSolidBrush(RGB(255,255,255)));
InvalidateRect(hwnd,0,TRUE);
and
Code:
case WM_ERASEBKGND:
{
HDC hdc;
RECT rc;
hdc = (HDC)wParam;
GetClientRect(hwnd,&rc);
FillRect(hdc,&rc,(HBRUSH)CreateSolidBrush(RGB(255,255,255)));
return 0;
}
Both methods leave my client area windows-grayish, also when I refresh/update/redraw the window.
I use CreateDialog with resources to create my window handle.
Code:
STYLE DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | DS_3DLOOK
EXSTYLE WS_EX_APPWINDOW
Maybe I just forgot a style needed to change background? Can anyone give advice? Tell me if you need the full code.
Thanks in advance, Hawk.