From bfb4755f65f30841da6c691b3133f65090018d6a Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Wed, 13 Aug 2003 16:40:09 +0000 Subject: [PATCH] drawing desktop background by using PaintDesktop() svn path=/trunk/; revision=5559 --- reactos/subsys/system/explorer/desktop/desktop.cpp | 8 +++++--- reactos/subsys/system/explorer/makefile_rex | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/reactos/subsys/system/explorer/desktop/desktop.cpp b/reactos/subsys/system/explorer/desktop/desktop.cpp index b97fa5d8f74..c237e198ea3 100644 --- a/reactos/subsys/system/explorer/desktop/desktop.cpp +++ b/reactos/subsys/system/explorer/desktop/desktop.cpp @@ -58,10 +58,12 @@ static void draw_desktop_background(HWND hwnd, HDC hdc) RECT rect; GetClientRect(hwnd, &rect); + PaintDesktop(hdc); +/* HBRUSH bkgndBrush = CreateSolidBrush(RGB(0,32,160)); // dark blue - FillRect(hdc, &rect, bkgndBrush/*GetStockBrush(BLACK_BRUSH)*/); + FillRect(hdc, &rect, bkgndBrush); DeleteBrush(bkgndBrush); - +*/ // This next part could be improved by working out how much // space the text actually needs... @@ -217,7 +219,7 @@ HWND create_desktop_window(HINSTANCE hInstance) WindowClass wcDesktop(_T("Program Manager")); wcDesktop.style = CS_DBLCLKS; - wcDesktop.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH); + wcDesktop.hbrBackground = (HBRUSH)(COLOR_BACKGROUND+1); wcDesktop.hIcon = LoadIcon(NULL, IDI_APPLICATION); wcDesktop.hCursor = LoadCursor(NULL, IDC_ARROW); diff --git a/reactos/subsys/system/explorer/makefile_rex b/reactos/subsys/system/explorer/makefile_rex index 13a0c2041ab..861f4657d50 100644 --- a/reactos/subsys/system/explorer/makefile_rex +++ b/reactos/subsys/system/explorer/makefile_rex @@ -12,9 +12,9 @@ TARGET_APPTYPE = windows TARGET_NAME = explorer -TARGET_CFLAGS = -fexceptions -O2 -DNDEBUG -DWIN32 -D_ROS_ -W -D_WIN32_IE=0x0500 +TARGET_CFLAGS = -fexceptions -Os -DNDEBUG -DWIN32 -D_ROS_ -W -D_WIN32_IE=0x0500 -TARGET_CPPFLAGS = -fexceptions -O2 -DNDEBUG -DWIN32 -D_ROS_ -W -D_WIN32_IE=0x0500 +TARGET_CPPFLAGS = -fexceptions -Os -DNDEBUG -DWIN32 -D_ROS_ -W -D_WIN32_IE=0x0500 TARGET_RCFLAGS = -DNDEBUG -DWIN32 -D_ROS_