mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 13:34:53 +00:00
[TASKMGR] Remove more dead code.
This commit is contained in:
parent
6e77747b30
commit
2da0506f2a
|
@ -423,21 +423,7 @@ TaskManagerWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
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_SIZING:
|
case WM_SIZING:
|
||||||
/* Make sure the user is sizing the dialog */
|
/* Make sure the user is sizing the dialog */
|
||||||
/* in an acceptable range */
|
/* in an acceptable range */
|
||||||
|
@ -527,32 +513,6 @@ void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr)
|
||||||
ExtTextOutW(hDC, 0, 0, ETO_OPAQUE, lpRect, NULL, 0, NULL);
|
ExtTextOutW(hDC, 0, 0, ETO_OPAQUE, lpRect, NULL, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FillSolidRect2(HDC hDC, int x, int y, int cx, int cy, COLORREF clr)
|
|
||||||
{
|
|
||||||
RECT rect;
|
|
||||||
|
|
||||||
SetBkColor(hDC, clr);
|
|
||||||
rect.left = x;
|
|
||||||
rect.top = y;
|
|
||||||
rect.right = x + cx;
|
|
||||||
rect.bottom = y + cy;
|
|
||||||
ExtTextOutW(hDC, 0, 0, ETO_OPAQUE, &rect, NULL, 0, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Draw3dRect(HDC hDC, int x, int y, int cx, int cy, COLORREF clrTopLeft, COLORREF clrBottomRight)
|
|
||||||
{
|
|
||||||
FillSolidRect2(hDC, x, y, cx - 1, 1, clrTopLeft);
|
|
||||||
FillSolidRect2(hDC, x, y, 1, cy - 1, clrTopLeft);
|
|
||||||
FillSolidRect2(hDC, x + cx, y, -1, cy, clrBottomRight);
|
|
||||||
FillSolidRect2(hDC, x, y + cy, cx, -1, clrBottomRight);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Draw3dRect2(HDC hDC, LPRECT lpRect, COLORREF clrTopLeft, COLORREF clrBottomRight)
|
|
||||||
{
|
|
||||||
Draw3dRect(hDC, lpRect->left, lpRect->top, lpRect->right - lpRect->left,
|
|
||||||
lpRect->bottom - lpRect->top, clrTopLeft, clrBottomRight);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void SetUpdateSpeed(HWND hWnd)
|
static void SetUpdateSpeed(HWND hWnd)
|
||||||
{
|
{
|
||||||
/* Setup update speed (pause=fall down) */
|
/* Setup update speed (pause=fall down) */
|
||||||
|
|
|
@ -91,9 +91,6 @@ BOOL OnCreate(HWND hWnd);
|
||||||
void OnSize(WPARAM nType, int cx, int cy);
|
void OnSize(WPARAM nType, int cx, int cy);
|
||||||
void OnMove(WPARAM nType, int cx, int cy);
|
void OnMove(WPARAM nType, int cx, int cy);
|
||||||
void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr);
|
void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr);
|
||||||
void FillSolidRect2(HDC hDC, int x, int y, int cx, int cy, COLORREF clr);
|
|
||||||
void Draw3dRect(HDC hDC, int x, int y, int cx, int cy, COLORREF clrTopLeft, COLORREF clrBottomRight);
|
|
||||||
void Draw3dRect2(HDC hDC, LPRECT lpRect, COLORREF clrTopLeft, COLORREF clrBottomRight);
|
|
||||||
void LoadSettings(void);
|
void LoadSettings(void);
|
||||||
void SaveSettings(void);
|
void SaveSettings(void);
|
||||||
void TaskManager_OnRestoreMainWindow(void);
|
void TaskManager_OnRestoreMainWindow(void);
|
||||||
|
|
Loading…
Reference in a new issue