mirror of
https://github.com/reactos/reactos.git
synced 2024-12-25 16:50:57 +00:00
Fixed font bitmap and minor window placement mods.
svn path=/trunk/; revision=3166
This commit is contained in:
parent
994b70bb48
commit
aea5d54245
4 changed files with 36 additions and 62 deletions
|
@ -594,7 +594,6 @@ LRESULT CALLBACK GraphCtrl_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARA
|
|||
//TGraphCtrl* pGraphCtrl;
|
||||
|
||||
switch (message) {
|
||||
/*
|
||||
case WM_ERASEBKGND:
|
||||
return TRUE;
|
||||
//
|
||||
|
@ -650,7 +649,6 @@ LRESULT CALLBACK GraphCtrl_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARA
|
|||
case WM_SYSKEYDOWN:
|
||||
case WM_SYSKEYUP:
|
||||
return 0;
|
||||
*/
|
||||
case WM_PAINT:
|
||||
hdc = BeginPaint(hWnd, &ps);
|
||||
// pGraphCtrl = TGraphCtrl::LookupGraphCtrl(hWnd);
|
||||
|
@ -690,7 +688,6 @@ LRESULT CALLBACK GraphCtrl_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARA
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// We pass on all non-handled messages
|
||||
|
|
|
@ -76,20 +76,6 @@ HWND hPerformancePagePhysicalMemorySystemCacheEdit; // Physical Memory System C
|
|||
HWND hPerformancePageTotalsHandleCountEdit; // Total Handles Edit Control
|
||||
HWND hPerformancePageTotalsProcessCountEdit; // Total Processes Edit Control
|
||||
HWND hPerformancePageTotalsThreadCountEdit; // Total Threads Edit Control
|
||||
#if 0
|
||||
HWND hPerformancePageCommitChargeTotalLabel;
|
||||
HWND hPerformancePageCommitChargeLimitLabel;
|
||||
HWND hPerformancePageCommitChargePeakLabel;
|
||||
HWND hPerformancePageKernelMemoryTotalLabel;
|
||||
HWND hPerformancePageKernelMemoryPagedLabel;
|
||||
HWND hPerformancePageKernelMemoryNonPagedLabel;
|
||||
HWND hPerformancePagePhysicalMemoryTotalLabel;
|
||||
HWND hPerformancePagePhysicalMemoryAvailableLabel;
|
||||
HWND hPerformancePagePhysicalMemorySystemCacheLabel;
|
||||
HWND hPerformancePageTotalsHandleCountLabel;
|
||||
HWND hPerformancePageTotalsProcessCountLabel;
|
||||
HWND hPerformancePageTotalsThreadCountLabel;
|
||||
#endif
|
||||
|
||||
|
||||
static int nPerformancePageWidth;
|
||||
|
@ -150,7 +136,10 @@ LRESULT CALLBACK PerformancePageWndProc(HWND hDlg, UINT message, WPARAM wParam,
|
|||
int nXDifference;
|
||||
int nYDifference;
|
||||
|
||||
switch (message)
|
||||
HDC hdc;
|
||||
PAINTSTRUCT ps;
|
||||
|
||||
switch (message)
|
||||
{
|
||||
case WM_INITDIALOG:
|
||||
|
||||
|
@ -187,21 +176,8 @@ LRESULT CALLBACK PerformancePageWndProc(HWND hDlg, UINT message, WPARAM wParam,
|
|||
hPerformancePageTotalsHandleCountEdit = GetDlgItem(hDlg, IDC_TOTALS_HANDLE_COUNT);
|
||||
hPerformancePageTotalsProcessCountEdit = GetDlgItem(hDlg, IDC_TOTALS_PROCESS_COUNT);
|
||||
hPerformancePageTotalsThreadCountEdit = GetDlgItem(hDlg, IDC_TOTALS_THREAD_COUNT);
|
||||
#if 0
|
||||
hPerformancePageCommitChargeTotalLabel = GetDlgItem(hDlg, IDS_COMMIT_CHARGE_TOTAL);
|
||||
hPerformancePageCommitChargeLimitLabel = GetDlgItem(hDlg, IDS_COMMIT_CHARGE_LIMIT);
|
||||
hPerformancePageCommitChargePeakLabel = GetDlgItem(hDlg, IDS_COMMIT_CHARGE_PEAK);
|
||||
hPerformancePageKernelMemoryTotalLabel = GetDlgItem(hDlg, IDS_KERNEL_MEMORY_TOTAL);
|
||||
hPerformancePageKernelMemoryPagedLabel = GetDlgItem(hDlg, IDS_KERNEL_MEMORY_PAGED);
|
||||
hPerformancePageKernelMemoryNonPagedLabel = GetDlgItem(hDlg, IDS_KERNEL_MEMORY_NONPAGED);
|
||||
hPerformancePagePhysicalMemoryTotalLabel = GetDlgItem(hDlg, IDS_PHYSICAL_MEMORY_TOTAL);
|
||||
hPerformancePagePhysicalMemoryAvailableLabel = GetDlgItem(hDlg, IDS_PHYSICAL_MEMORY_AVAILABLE);
|
||||
hPerformancePagePhysicalMemorySystemCacheLabel = GetDlgItem(hDlg, IDS_PHYSICAL_MEMORY_SYSTEM_CACHE);
|
||||
hPerformancePageTotalsHandleCountLabel = GetDlgItem(hDlg, IDS_TOTALS_HANDLE_COUNT);
|
||||
hPerformancePageTotalsProcessCountLabel = GetDlgItem(hDlg, IDS_TOTALS_PROCESS_COUNT);
|
||||
hPerformancePageTotalsThreadCountLabel = GetDlgItem(hDlg, IDS_TOTALS_THREAD_COUNT);
|
||||
#endif
|
||||
hPerformancePageCpuUsageGraph = GetDlgItem(hDlg, IDC_CPU_USAGE_GRAPH);
|
||||
|
||||
hPerformancePageCpuUsageGraph = GetDlgItem(hDlg, IDC_CPU_USAGE_GRAPH);
|
||||
hPerformancePageMemUsageGraph = GetDlgItem(hDlg, IDC_MEM_USAGE_GRAPH);
|
||||
hPerformancePageMemUsageHistoryGraph = GetDlgItem(hDlg, IDC_MEM_USAGE_HISTORY_GRAPH);
|
||||
hPerformancePageCpuUsageHistoryGraph = GetDlgItem(hDlg, IDC_CPU_USAGE_HISTORY_GRAPH);
|
||||
|
@ -244,11 +220,27 @@ LRESULT CALLBACK PerformancePageWndProc(HWND hDlg, UINT message, WPARAM wParam,
|
|||
// SetWindowLong(hPerformancePageMemUsageGraph, GWL_WNDPROC, (LONG)GraphCtrl_WndProc);
|
||||
OldGraphCtrlWndProc = SetWindowLong(hPerformancePageMemUsageHistoryGraph, GWL_WNDPROC, (LONG)GraphCtrl_WndProc);
|
||||
SetWindowLong(hPerformancePageCpuUsageHistoryGraph, GWL_WNDPROC, (LONG)GraphCtrl_WndProc);
|
||||
|
||||
return TRUE;
|
||||
|
||||
case WM_COMMAND:
|
||||
break;
|
||||
#if 0
|
||||
case WM_NCPAINT:
|
||||
hdc = GetDC(hDlg);
|
||||
//GetClientRect(hDlg, &rc);
|
||||
//Draw3dRect(hdc, rc.left, rc.top, rc.right, rc.top + 2, GetSysColor(COLOR_3DSHADOW), GetSysColor(COLOR_3DHILIGHT));
|
||||
ReleaseDC(hDlg, hdc);
|
||||
break;
|
||||
|
||||
case WM_PAINT:
|
||||
hdc = BeginPaint(hDlg, &ps);
|
||||
|
||||
//GetClientRect(hDlg, &rc);
|
||||
//Draw3dRect(hdc, rc.left, rc.top, rc.right, rc.top + 2, GetSysColor(COLOR_3DSHADOW), GetSysColor(COLOR_3DHILIGHT));
|
||||
EndPaint(hDlg, &ps);
|
||||
break;
|
||||
#endif
|
||||
case WM_SIZE:
|
||||
int cx, cy;
|
||||
|
||||
|
@ -269,20 +261,6 @@ LRESULT CALLBACK PerformancePageWndProc(HWND hDlg, UINT message, WPARAM wParam,
|
|||
AdjustFrameSize(hPerformancePageCommitChargeFrame, hDlg, 0, nYDifference, 0);
|
||||
AdjustFrameSize(hPerformancePageKernelMemoryFrame, hDlg, 0, nYDifference, 0);
|
||||
AdjustFrameSize(hPerformancePagePhysicalMemoryFrame, hDlg, 0, nYDifference, 0);
|
||||
#if 0
|
||||
AdjustControlPostion(hPerformancePageCommitChargeTotalLabel, hDlg, 0, nYDifference);
|
||||
AdjustControlPostion(hPerformancePageCommitChargeLimitLabel, hDlg, 0, nYDifference);
|
||||
AdjustControlPostion(hPerformancePageCommitChargePeakLabel, hDlg, 0, nYDifference);
|
||||
AdjustControlPostion(hPerformancePageKernelMemoryTotalLabel, hDlg, 0, nYDifference);
|
||||
AdjustControlPostion(hPerformancePageKernelMemoryPagedLabel, hDlg, 0, nYDifference);
|
||||
AdjustControlPostion(hPerformancePageKernelMemoryNonPagedLabel, hDlg, 0, nYDifference);
|
||||
AdjustControlPostion(hPerformancePagePhysicalMemoryTotalLabel, hDlg, 0, nYDifference);
|
||||
AdjustControlPostion(hPerformancePagePhysicalMemoryAvailableLabel, hDlg, 0, nYDifference);
|
||||
AdjustControlPostion(hPerformancePagePhysicalMemorySystemCacheLabel, hDlg, 0, nYDifference);
|
||||
AdjustControlPostion(hPerformancePageTotalsHandleCountLabel, hDlg, 0, nYDifference);
|
||||
AdjustControlPostion(hPerformancePageTotalsProcessCountLabel, hDlg, 0, nYDifference);
|
||||
AdjustControlPostion(hPerformancePageTotalsThreadCountLabel, hDlg, 0, nYDifference);
|
||||
#else
|
||||
AdjustCntrlPos(IDS_COMMIT_CHARGE_TOTAL, hDlg, 0, nYDifference);
|
||||
AdjustCntrlPos(IDS_COMMIT_CHARGE_LIMIT, hDlg, 0, nYDifference);
|
||||
AdjustCntrlPos(IDS_COMMIT_CHARGE_PEAK, hDlg, 0, nYDifference);
|
||||
|
@ -295,7 +273,6 @@ LRESULT CALLBACK PerformancePageWndProc(HWND hDlg, UINT message, WPARAM wParam,
|
|||
AdjustCntrlPos(IDS_TOTALS_HANDLE_COUNT, hDlg, 0, nYDifference);
|
||||
AdjustCntrlPos(IDS_TOTALS_PROCESS_COUNT, hDlg, 0, nYDifference);
|
||||
AdjustCntrlPos(IDS_TOTALS_THREAD_COUNT, hDlg, 0, nYDifference);
|
||||
#endif
|
||||
|
||||
AdjustControlPostion(hPerformancePageCommitChargeTotalEdit, hDlg, 0, nYDifference);
|
||||
AdjustControlPostion(hPerformancePageCommitChargeLimitEdit, hDlg, 0, nYDifference);
|
||||
|
|
|
@ -481,12 +481,22 @@ BOOL OnCreate(HWND hWnd)
|
|||
//nOldStartX = rc.left;
|
||||
//nOldStartY = rc.top;
|
||||
|
||||
#define PAGE_OFFSET_LEFT 17
|
||||
#define PAGE_OFFSET_TOP 72
|
||||
#define PAGE_OFFSET_WIDTH (PAGE_OFFSET_LEFT*2)
|
||||
#define PAGE_OFFSET_HEIGHT (PAGE_OFFSET_TOP+32)
|
||||
|
||||
if ((TaskManagerSettings.Left != 0) ||
|
||||
(TaskManagerSettings.Top != 0) ||
|
||||
(TaskManagerSettings.Right != 0) ||
|
||||
(TaskManagerSettings.Bottom != 0))
|
||||
{
|
||||
MoveWindow(hWnd, TaskManagerSettings.Left, TaskManagerSettings.Top, TaskManagerSettings.Right - TaskManagerSettings.Left, TaskManagerSettings.Bottom - TaskManagerSettings.Top, TRUE);
|
||||
#ifdef GCC
|
||||
MoveWindow(hApplicationPage, TaskManagerSettings.Left + PAGE_OFFSET_LEFT, TaskManagerSettings.Top + PAGE_OFFSET_TOP, TaskManagerSettings.Right - TaskManagerSettings.Left - PAGE_OFFSET_WIDTH, TaskManagerSettings.Bottom - TaskManagerSettings.Top - PAGE_OFFSET_HEIGHT, FALSE);
|
||||
MoveWindow(hProcessPage, TaskManagerSettings.Left + PAGE_OFFSET_LEFT, TaskManagerSettings.Top + PAGE_OFFSET_TOP, TaskManagerSettings.Right - TaskManagerSettings.Left - PAGE_OFFSET_WIDTH, TaskManagerSettings.Bottom - TaskManagerSettings.Top - PAGE_OFFSET_HEIGHT, FALSE);
|
||||
MoveWindow(hPerformancePage, TaskManagerSettings.Left + PAGE_OFFSET_LEFT, TaskManagerSettings.Top + PAGE_OFFSET_TOP, TaskManagerSettings.Right - TaskManagerSettings.Left - PAGE_OFFSET_WIDTH, TaskManagerSettings.Bottom - TaskManagerSettings.Top - PAGE_OFFSET_HEIGHT, FALSE);
|
||||
#endif
|
||||
}
|
||||
if (TaskManagerSettings.Maximized)
|
||||
ShowWindow(hWnd, SW_MAXIMIZE);
|
||||
|
@ -603,20 +613,10 @@ BOOL OnCreate(HWND hWnd)
|
|||
// It moves every child window that needs moving
|
||||
void OnMove( UINT nType, int cx, int cy )
|
||||
{
|
||||
#if 0
|
||||
RECT rc;
|
||||
|
||||
nOldStartX = cx;
|
||||
nOldStartY = cy;
|
||||
|
||||
GetWindowRect(hTabWnd, &rc);
|
||||
rc.left += 2;//nOldStartX;
|
||||
rc.top += 2;//nOldStartY;
|
||||
rc.right -= 4;
|
||||
rc.bottom -= 4;
|
||||
SetWindowPos(hApplicationPage, NULL, rc.left, rc.top, rc.right, rc.bottom, SWP_NOACTIVATE|SWP_NOOWNERZORDER|SWP_NOMOVE|SWP_NOZORDER);
|
||||
SetWindowPos(hProcessPage, NULL, rc.left, rc.top, rc.right, rc.bottom, SWP_NOACTIVATE|SWP_NOOWNERZORDER|SWP_NOMOVE|SWP_NOZORDER);
|
||||
SetWindowPos(hPerformancePage, NULL, rc.left, rc.top, rc.right, rc.bottom, SWP_NOACTIVATE|SWP_NOOWNERZORDER|SWP_NOMOVE|SWP_NOZORDER);
|
||||
#ifdef GCC
|
||||
MoveWindow(hApplicationPage, TaskManagerSettings.Left + PAGE_OFFSET_LEFT, TaskManagerSettings.Top + PAGE_OFFSET_TOP, TaskManagerSettings.Right - TaskManagerSettings.Left - PAGE_OFFSET_WIDTH, TaskManagerSettings.Bottom - TaskManagerSettings.Top - PAGE_OFFSET_HEIGHT, FALSE);
|
||||
MoveWindow(hProcessPage, TaskManagerSettings.Left + PAGE_OFFSET_LEFT, TaskManagerSettings.Top + PAGE_OFFSET_TOP, TaskManagerSettings.Right - TaskManagerSettings.Left - PAGE_OFFSET_WIDTH, TaskManagerSettings.Bottom - TaskManagerSettings.Top - PAGE_OFFSET_HEIGHT, FALSE);
|
||||
MoveWindow(hPerformancePage, TaskManagerSettings.Left + PAGE_OFFSET_LEFT, TaskManagerSettings.Top + PAGE_OFFSET_TOP, TaskManagerSettings.Right - TaskManagerSettings.Left - PAGE_OFFSET_WIDTH, TaskManagerSettings.Bottom - TaskManagerSettings.Top - PAGE_OFFSET_HEIGHT, FALSE);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 646 B After Width: | Height: | Size: 646 B |
Loading…
Reference in a new issue