| 158 | } |
| 159 | |
| 160 | void CColorCopApp::ClipOrCenterWindowToMonitor(HWND hwnd, UINT flags) { |
| 161 | (void) flags; // explicitly mark unused to avoid a warning |
| 162 | RECT rc; |
| 163 | GetWindowRect(hwnd, &rc); |
| 164 | SetWindowPos(hwnd, NULL, rc.left, rc.top, 0, 0, SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE); |
| 165 | dlg.WinLocX = rc.left; |
| 166 | dlg.WinLocY = rc.top; |
| 167 | } |
| 168 | |
| 169 | BOOL CColorCopApp::InitApplication() { |
| 170 | // Detect portable‑mode command‑line switches (restores pre‑5.3 behavior) |
nothing calls this directly
no outgoing calls
no test coverage detected