From 283e8144183e49dce661e0b5f45e331f7f3dfaa9 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sun, 28 Mar 2004 20:32:23 +0000 Subject: [PATCH] option "display version on desktop background" svn path=/branches/lean-explorer/; revision=8908 --- reactos/subsys/system/explorer/desktop/desktop.h | 7 +++++++ reactos/subsys/system/explorer/explorer_intres.h | 7 ++++--- reactos/subsys/system/explorer/explorer_intres.rc | 14 ++++++++------ 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/reactos/subsys/system/explorer/desktop/desktop.h b/reactos/subsys/system/explorer/desktop/desktop.h index 911cda3908c..e39b0515cc4 100644 --- a/reactos/subsys/system/explorer/desktop/desktop.h +++ b/reactos/subsys/system/explorer/desktop/desktop.h @@ -26,6 +26,9 @@ // +#define PM_DISPLAY_VERSION (WM_APP+0x24) + + /// subclassed Background window behind the visible desktop window struct BackgroundWindow : public SubclassedWindow { @@ -35,6 +38,10 @@ struct BackgroundWindow : public SubclassedWindow protected: LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam); + + void DrawDesktopBkgnd(HDC hdc); + + int _display_version; }; diff --git a/reactos/subsys/system/explorer/explorer_intres.h b/reactos/subsys/system/explorer/explorer_intres.h index 9d0eec3775b..8e7ee8765f8 100644 --- a/reactos/subsys/system/explorer/explorer_intres.h +++ b/reactos/subsys/system/explorer/explorer_intres.h @@ -90,6 +90,7 @@ #define ID_VIEW_STATUSBAR 503 #define ID_VIEW_TOOL_BAR 508 #define IDC_ROS_EXPLORER 1000 +#define ID_DESKTOP_VERSION 1003 #define IDC_WWW 1012 #define IDC_TOPIC 1017 #define IDC_MAILS_FOUND 1018 @@ -107,9 +108,9 @@ #define ID_STOP 40009 #define ID_MINIMIZE_ALL 40010 #define ID_EXPLORE 40011 -#define ID_SWITCH_DESKTOP_1 50000 #define ID_TASKMGR 40012 -#define ID_BROWSE_UP 40013 +#define ID_BROWSE_UP 40013 +#define ID_SWITCH_DESKTOP_1 50000 #define ID_WINDOW_NEW 0xE130 #define ID_EDIT_PROPERTIES 57656 #define ID_FILE_EXIT 0xE141 @@ -123,7 +124,7 @@ #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 165 #define _APS_NEXT_COMMAND_VALUE 40014 -#define _APS_NEXT_CONTROL_VALUE 1003 +#define _APS_NEXT_CONTROL_VALUE 1004 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif diff --git a/reactos/subsys/system/explorer/explorer_intres.rc b/reactos/subsys/system/explorer/explorer_intres.rc index e465df836e6..371e9ce79de 100644 --- a/reactos/subsys/system/explorer/explorer_intres.rc +++ b/reactos/subsys/system/explorer/explorer_intres.rc @@ -435,21 +435,23 @@ BEGIN PUSHBUTTON "&Help",254,158,43,47,14 END -IDD_DESKBAR_DESKTOP DIALOG DISCARDABLE 0, 0, 212, 172 +IDD_DESKBAR_DESKTOP DIALOG DISCARDABLE 0, 0, 212, 194 STYLE WS_CHILD | WS_DISABLED | WS_CAPTION CAPTION "Desktop Properties" FONT 8, "MS Sans Serif" BEGIN + CONTROL "Display &Version Number",ID_DESKTOP_VERSION,"Button", + BS_AUTOCHECKBOX | WS_TABSTOP,7,177,91,10 END -IDD_DESKBAR_TASKBAR DIALOG DISCARDABLE 0, 0, 210, 154 +IDD_DESKBAR_TASKBAR DIALOG DISCARDABLE 0, 0, 210, 194 STYLE WS_CHILD | WS_DISABLED | WS_CAPTION CAPTION "Taskbar Properties" FONT 8, "MS Sans Serif" BEGIN END -IDD_DESKBAR_STARTMENU DIALOG DISCARDABLE 0, 0, 210, 154 +IDD_DESKBAR_STARTMENU DIALOG DISCARDABLE 0, 0, 210, 194 STYLE WS_CHILD | WS_DISABLED | WS_CAPTION CAPTION "Startmenu Properties" FONT 8, "MS Sans Serif" @@ -470,7 +472,7 @@ BEGIN LEFTMARGIN, 7 RIGHTMARGIN, 205 TOPMARGIN, 7 - BOTTOMMARGIN, 165 + BOTTOMMARGIN, 187 END IDD_DESKBAR_TASKBAR, DIALOG @@ -478,7 +480,7 @@ BEGIN LEFTMARGIN, 7 RIGHTMARGIN, 203 TOPMARGIN, 7 - BOTTOMMARGIN, 147 + BOTTOMMARGIN, 187 END IDD_DESKBAR_STARTMENU, DIALOG @@ -486,7 +488,7 @@ BEGIN LEFTMARGIN, 7 RIGHTMARGIN, 203 TOPMARGIN, 7 - BOTTOMMARGIN, 147 + BOTTOMMARGIN, 187 END END #endif // APSTUDIO_INVOKED