commit
c8740032ca
@ -103,6 +103,14 @@ namespace console
|
|||||||
case WM_CLOSE:
|
case WM_CLOSE:
|
||||||
DestroyWindow(hWnd);
|
DestroyWindow(hWnd);
|
||||||
return 0;
|
return 0;
|
||||||
|
case WM_CTLCOLORSTATIC:
|
||||||
|
SetBkColor((HDC)wParam, RGB(50, 50, 50));
|
||||||
|
SetTextColor((HDC)wParam, RGB(232, 230, 227));
|
||||||
|
return (INT_PTR)CreateSolidBrush(RGB(50, 50, 50));
|
||||||
|
case WM_CTLCOLOREDIT:
|
||||||
|
SetBkColor((HDC)wParam, RGB(50, 50, 50));
|
||||||
|
SetTextColor((HDC)wParam, RGB(232, 230, 227));
|
||||||
|
return (INT_PTR)CreateSolidBrush(RGB(50, 50, 50));
|
||||||
default:
|
default:
|
||||||
return DefWindowProcA(hWnd, uMsg, wParam, lParam);
|
return DefWindowProcA(hWnd, uMsg, wParam, lParam);
|
||||||
}
|
}
|
||||||
@ -249,7 +257,7 @@ namespace console
|
|||||||
WndClass.lpfnWndProc = ConWndProc;
|
WndClass.lpfnWndProc = ConWndProc;
|
||||||
WndClass.hInstance = hInstance;
|
WndClass.hInstance = hInstance;
|
||||||
WndClass.hIcon = icon;
|
WndClass.hIcon = icon;
|
||||||
WndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW);
|
WndClass.hbrBackground = CreateSolidBrush(RGB(50, 50, 50));
|
||||||
WndClass.hCursor = LoadCursorA(0, (LPCSTR)0x7F00);
|
WndClass.hCursor = LoadCursorA(0, (LPCSTR)0x7F00);
|
||||||
WndClass.lpszMenuName = NULL;
|
WndClass.lpszMenuName = NULL;
|
||||||
WndClass.lpszClassName = ClassName;
|
WndClass.lpszClassName = ClassName;
|
||||||
@ -258,7 +266,7 @@ namespace console
|
|||||||
Rect.top = 0;
|
Rect.top = 0;
|
||||||
Rect.left = 0;
|
Rect.left = 0;
|
||||||
Rect.right = 620;
|
Rect.right = 620;
|
||||||
Rect.bottom = 450;
|
Rect.bottom = 430;
|
||||||
AdjustWindowRect(&Rect, 0x80CA0000, 0);
|
AdjustWindowRect(&Rect, 0x80CA0000, 0);
|
||||||
auto v4 = GetDesktopWindow();
|
auto v4 = GetDesktopWindow();
|
||||||
auto v5 = GetDC(v4);
|
auto v5 = GetDC(v4);
|
||||||
|
Loading…
Reference in New Issue
Block a user