mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user