set background brush for the short moment of displaying the background color while moving foreground windows

svn path=/trunk/; revision=8373
This commit is contained in:
Martin Fuchs 2004-02-25 19:29:12 +00:00
parent fcf0872f58
commit 8932a19cd6
2 changed files with 10 additions and 2 deletions

View file

@ -246,7 +246,15 @@ static void draw_desktop_background(HWND hwnd, HDC hdc)
}
LRESULT BackgroundWindow::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
BackgroundWindow::BackgroundWindow(HWND hwnd)
: super(hwnd)
{
// set background brush for the short moment of displaying the
// background color while moving foreground windows
SetClassLong(hwnd, GCL_HBRBACKGROUND, COLOR_BACKGROUND+1);
}
LRESULT BackgroundWindow::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
{
switch(nmsg) {
case WM_ERASEBKGND:

View file

@ -35,7 +35,7 @@ struct BackgroundWindow : public SubclassedWindow
{
typedef SubclassedWindow super;
BackgroundWindow(HWND hwnd) : super(hwnd) {}
BackgroundWindow(HWND hwnd);
protected:
LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam);