From 8932a19cd6ff687fd5b3b8aa9ddd6031918537fe Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Wed, 25 Feb 2004 19:29:12 +0000 Subject: [PATCH] set background brush for the short moment of displaying the background color while moving foreground windows svn path=/trunk/; revision=8373 --- reactos/subsys/system/explorer/desktop/desktop.cpp | 10 +++++++++- reactos/subsys/system/explorer/desktop/desktop.h | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/system/explorer/desktop/desktop.cpp b/reactos/subsys/system/explorer/desktop/desktop.cpp index f72af94dd5e..3b37236fae8 100644 --- a/reactos/subsys/system/explorer/desktop/desktop.cpp +++ b/reactos/subsys/system/explorer/desktop/desktop.cpp @@ -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: diff --git a/reactos/subsys/system/explorer/desktop/desktop.h b/reactos/subsys/system/explorer/desktop/desktop.h index a4b399c396c..d857836372f 100644 --- a/reactos/subsys/system/explorer/desktop/desktop.h +++ b/reactos/subsys/system/explorer/desktop/desktop.h @@ -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);