I am using MSVC++ 6.0 on Windows 2000 in a non-MFC environment. When I create the main window the client area is transparent. Also if the window is moved off the screen and back on it is not redrawn properly (blurry). The same code works on Windows 98. I can force the client area to be white by adding the following code, but the blurry problem remains. Does anyone know why WIN 2000 is different?
case WM_ERASEBKGND:
hdc = BeginPaint(hwnd,&ps);
FillRect(ps.hdc,&ps.rcPaint, hbrWhite);
EndPaint(hwnd, &ps);
case WM_ERASEBKGND:
hdc = BeginPaint(hwnd,&ps);
FillRect(ps.hdc,&ps.rcPaint, hbrWhite);
EndPaint(hwnd, &ps);