Author: mkupfer
Date: Sat Jul 11 19:59:46 2009
New Revision: 41888
URL:
http://svn.reactos.org/svn/reactos?rev=41888&view=rev
Log:
make status window parts more flexible in size
Modified:
trunk/reactos/base/applications/taskmgr/taskmgr.c
trunk/reactos/base/applications/taskmgr/taskmgr.h
Modified: trunk/reactos/base/applications/taskmgr/taskmgr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/taskmgr.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/taskmgr.c [iso-8859-1] Sat Jul 11 19:59:46
2009
@@ -459,9 +459,9 @@
return FALSE;
/* Create the status bar panes */
- nParts[0] = 100;
- nParts[1] = 210;
- nParts[2] = 400;
+ nParts[0] = STATUS_SIZE1;
+ nParts[1] = STATUS_SIZE2;
+ nParts[2] = STATUS_SIZE3;
SendMessageW(hStatusWnd, SB_SETPARTS, 3, (LPARAM) (LPINT) nParts);
/* Create tab pages */
@@ -638,8 +638,8 @@
SendMessageW(hStatusWnd, WM_SIZE, nType, MAKELPARAM(cx,rc.bottom - rc.top));
/* Update the status bar pane sizes */
- nParts[0] = bInMenuLoop ? -1 : 100;
- nParts[1] = 210;
+ nParts[0] = bInMenuLoop ? -1 : STATUS_SIZE1;
+ nParts[1] = STATUS_SIZE2;
nParts[2] = cx;
SendMessageW(hStatusWnd, SB_SETPARTS, bInMenuLoop ? 1 : 3, (LPARAM) (LPINT) nParts);
@@ -792,8 +792,8 @@
bInMenuLoop = FALSE;
/* Update the status bar pane sizes */
GetClientRect(hWnd, &rc);
- nParts[0] = 100;
- nParts[1] = 210;
+ nParts[0] = STATUS_SIZE1;
+ nParts[1] = STATUS_SIZE2;
nParts[2] = rc.right;
SendMessageW(hStatusWnd, SB_SETPARTS, 3, (LPARAM) (LPINT) nParts);
SendMessageW(hStatusWnd, SB_SETTEXT, 0, (LPARAM)L"");
Modified: trunk/reactos/base/applications/taskmgr/taskmgr.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/taskmgr.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/taskmgr.h [iso-8859-1] Sat Jul 11 19:59:46
2009
@@ -47,6 +47,9 @@
#define RUN_PERF_PAGE
#define STATUS_WINDOW 2001
+#define STATUS_SIZE1 80
+#define STATUS_SIZE2 210
+#define STATUS_SIZE3 400
typedef struct
{