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

svn path=/branches/lean-explorer/; revision=8374
This commit is contained in:
Martin Fuchs
2004-02-25 19:29:13 +00:00
parent b5a4206184
commit ea3d021bfd
2 changed files with 10 additions and 2 deletions
@@ -147,7 +147,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:
@@ -31,7 +31,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);