| 70 | } |
| 71 | |
| 72 | LRESULT CALLBACK WndProc(HWND hwNd, UINT Message, WPARAM wParam, LPARAM lParam) { |
| 73 | switch (Message) { |
| 74 | case WM_CREATE: { |
| 75 | SetWindowPos(hwNd, HWND_TOPMOST, 0, 0, 100, 100, SWP_NOMOVE | SWP_NOSIZE); |
| 76 | { |
| 77 | HWND hwnd = CreateWindow(L"static", L"00:01:00", WS_CHILD | WS_VISIBLE | BS_CENTER | SS_CENTER, 0 * UIZoom, 185 * UIZoom, 640 * UIZoom, 70 * UIZoom, hwNd, (HMENU)TIME_LABEL, GetModuleHandle(0), NULL); |
| 78 | Controls.push_back(make_pair(hwnd, new Win32FontManager(hwnd, 75 * UIZoom))); |
| 79 | } |
| 80 | { |
| 81 | // Сʱ |
| 82 | { |
| 83 | HWND hwnd = CreateWindow(L"button", L"+1", WS_CHILD | BS_CENTER | SS_CENTER, 170 * UIZoom, 150 * UIZoom, 80 * UIZoom, 35 * UIZoom, hwNd, (HMENU)HOURS_PLUS1, GetModuleHandle(0), NULL); |
| 84 | Controls.push_back(make_pair(hwnd, new Win32FontManager(hwnd, 15 * UIZoom))); |
| 85 | } |
| 86 | { |
| 87 | HWND hwnd = CreateWindow(L"button", L"+5", WS_CHILD | BS_CENTER | SS_CENTER, 170 * UIZoom, 110 * UIZoom, 80 * UIZoom, 35 * UIZoom, hwNd, (HMENU)HOURS_PLUS5, GetModuleHandle(0), NULL); |
| 88 | Controls.push_back(make_pair(hwnd, new Win32FontManager(hwnd, 15 * UIZoom))); |
| 89 | } |
| 90 | { |
| 91 | HWND hwnd = CreateWindow(L"button", L"-1", WS_CHILD | BS_CENTER | SS_CENTER, 170 * UIZoom, 260 * UIZoom, 80 * UIZoom, 35 * UIZoom, hwNd, (HMENU)HOURS_MINUS1, GetModuleHandle(0), NULL); |
| 92 | Controls.push_back(make_pair(hwnd, new Win32FontManager(hwnd, 15 * UIZoom))); |
| 93 | } |
| 94 | { |
| 95 | HWND hwnd = CreateWindow(L"button", L"-5", WS_CHILD | BS_CENTER | SS_CENTER, 170 * UIZoom, 300 * UIZoom, 80 * UIZoom, 35 * UIZoom, hwNd, (HMENU)HOURS_MINUS5, GetModuleHandle(0), NULL); |
| 96 | Controls.push_back(make_pair(hwnd, new Win32FontManager(hwnd, 15 * UIZoom))); |
| 97 | } |
| 98 | } |
| 99 | { |
| 100 | // ���� |
| 101 | { |
| 102 | HWND hwnd = CreateWindow(L"button", L"+1", WS_CHILD | BS_CENTER | SS_CENTER, 280 * UIZoom, 150 * UIZoom, 80 * UIZoom, 35 * UIZoom, hwNd, (HMENU)MINUTE_PLUS1, GetModuleHandle(0), NULL); |
| 103 | Controls.push_back(make_pair(hwnd, new Win32FontManager(hwnd, 15 * UIZoom))); |
| 104 | } |
| 105 | { |
| 106 | HWND hwnd = CreateWindow(L"button", L"+5", WS_CHILD | BS_CENTER | SS_CENTER, 280 * UIZoom, 110 * UIZoom, 80 * UIZoom, 35 * UIZoom, hwNd, (HMENU)MINUTE_PLUS5, GetModuleHandle(0), NULL); |
| 107 | Controls.push_back(make_pair(hwnd, new Win32FontManager(hwnd, 15 * UIZoom))); |
| 108 | } |
| 109 | { |
| 110 | HWND hwnd = CreateWindow(L"button", L"-1", WS_CHILD | BS_CENTER | SS_CENTER, 280 * UIZoom, 260 * UIZoom, 80 * UIZoom, 35 * UIZoom, hwNd, (HMENU)MINUTE_MINUS1, GetModuleHandle(0), NULL); |
| 111 | Controls.push_back(make_pair(hwnd, new Win32FontManager(hwnd, 15 * UIZoom))); |
| 112 | } |
| 113 | { |
| 114 | HWND hwnd = CreateWindow(L"button", L"-5", WS_CHILD | BS_CENTER | SS_CENTER, 280 * UIZoom, 300 * UIZoom, 80 * UIZoom, 35 * UIZoom, hwNd, (HMENU)MINUTE_MINUS5, GetModuleHandle(0), NULL); |
| 115 | Controls.push_back(make_pair(hwnd, new Win32FontManager(hwnd, 15 * UIZoom))); |
| 116 | } |
| 117 | } |
| 118 | { |
| 119 | // ���� |
| 120 | { |
| 121 | HWND hwnd = CreateWindow(L"button", L"+1", WS_CHILD | BS_CENTER | SS_CENTER, 390 * UIZoom, 150 * UIZoom, 80 * UIZoom, 35 * UIZoom, hwNd, (HMENU)SECOND_PLUS1, GetModuleHandle(0), NULL); |
| 122 | Controls.push_back(make_pair(hwnd, new Win32FontManager(hwnd, 15 * UIZoom))); |
| 123 | } |
| 124 | { |
| 125 | HWND hwnd = CreateWindow(L"button", L"+5", WS_CHILD | BS_CENTER | SS_CENTER, 390 * UIZoom, 110 * UIZoom, 80 * UIZoom, 35 * UIZoom, hwNd, (HMENU)SECOND_PLUS5, GetModuleHandle(0), NULL); |
| 126 | Controls.push_back(make_pair(hwnd, new Win32FontManager(hwnd, 15 * UIZoom))); |
| 127 | } |
| 128 | { |
| 129 | HWND hwnd = CreateWindow(L"button", L"-1", WS_CHILD | BS_CENTER | SS_CENTER, 390 * UIZoom, 260 * UIZoom, 80 * UIZoom, 35 * UIZoom, hwNd, (HMENU)SECOND_MINUS1, GetModuleHandle(0), NULL); |
nothing calls this directly
no test coverage detected