mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
drawing desktop background by using PaintDesktop()
svn path=/trunk/; revision=5559
This commit is contained in:
parent
f594676552
commit
bfb4755f65
2 changed files with 7 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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_
|
||||
|
||||
|
|
Loading…
Reference in a new issue