mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 19:58:21 +00:00
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:
parent
fcf0872f58
commit
8932a19cd6
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue