mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 00:13:57 +00:00
make status window parts more flexible in size
svn path=/trunk/; revision=41888
This commit is contained in:
parent
e58af99cc1
commit
8022a4015e
|
@ -459,9 +459,9 @@ BOOL OnCreate(HWND hWnd)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Create the status bar panes */
|
/* Create the status bar panes */
|
||||||
nParts[0] = 100;
|
nParts[0] = STATUS_SIZE1;
|
||||||
nParts[1] = 210;
|
nParts[1] = STATUS_SIZE2;
|
||||||
nParts[2] = 400;
|
nParts[2] = STATUS_SIZE3;
|
||||||
SendMessageW(hStatusWnd, SB_SETPARTS, 3, (LPARAM) (LPINT) nParts);
|
SendMessageW(hStatusWnd, SB_SETPARTS, 3, (LPARAM) (LPINT) nParts);
|
||||||
|
|
||||||
/* Create tab pages */
|
/* Create tab pages */
|
||||||
|
@ -638,8 +638,8 @@ void OnSize( WPARAM nType, int cx, int cy )
|
||||||
SendMessageW(hStatusWnd, WM_SIZE, nType, MAKELPARAM(cx,rc.bottom - rc.top));
|
SendMessageW(hStatusWnd, WM_SIZE, nType, MAKELPARAM(cx,rc.bottom - rc.top));
|
||||||
|
|
||||||
/* Update the status bar pane sizes */
|
/* Update the status bar pane sizes */
|
||||||
nParts[0] = bInMenuLoop ? -1 : 100;
|
nParts[0] = bInMenuLoop ? -1 : STATUS_SIZE1;
|
||||||
nParts[1] = 210;
|
nParts[1] = STATUS_SIZE2;
|
||||||
nParts[2] = cx;
|
nParts[2] = cx;
|
||||||
SendMessageW(hStatusWnd, SB_SETPARTS, bInMenuLoop ? 1 : 3, (LPARAM) (LPINT) nParts);
|
SendMessageW(hStatusWnd, SB_SETPARTS, bInMenuLoop ? 1 : 3, (LPARAM) (LPINT) nParts);
|
||||||
|
|
||||||
|
@ -792,8 +792,8 @@ void TaskManager_OnExitMenuLoop(HWND hWnd)
|
||||||
bInMenuLoop = FALSE;
|
bInMenuLoop = FALSE;
|
||||||
/* Update the status bar pane sizes */
|
/* Update the status bar pane sizes */
|
||||||
GetClientRect(hWnd, &rc);
|
GetClientRect(hWnd, &rc);
|
||||||
nParts[0] = 100;
|
nParts[0] = STATUS_SIZE1;
|
||||||
nParts[1] = 210;
|
nParts[1] = STATUS_SIZE2;
|
||||||
nParts[2] = rc.right;
|
nParts[2] = rc.right;
|
||||||
SendMessageW(hStatusWnd, SB_SETPARTS, 3, (LPARAM) (LPINT) nParts);
|
SendMessageW(hStatusWnd, SB_SETPARTS, 3, (LPARAM) (LPINT) nParts);
|
||||||
SendMessageW(hStatusWnd, SB_SETTEXT, 0, (LPARAM)L"");
|
SendMessageW(hStatusWnd, SB_SETTEXT, 0, (LPARAM)L"");
|
||||||
|
|
|
@ -47,6 +47,9 @@ typedef struct _IO_COUNTERS {
|
||||||
#define RUN_PERF_PAGE
|
#define RUN_PERF_PAGE
|
||||||
|
|
||||||
#define STATUS_WINDOW 2001
|
#define STATUS_WINDOW 2001
|
||||||
|
#define STATUS_SIZE1 80
|
||||||
|
#define STATUS_SIZE2 210
|
||||||
|
#define STATUS_SIZE3 400
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue