MCPcopy Create free account
hub / github.com/ColorCop/ColorCop / ClipOrCenterWindowToMonitor

Method ClipOrCenterWindowToMonitor

ColorCop/ColorCop.cpp:160–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void 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
169BOOL CColorCopApp::InitApplication() {
170 // Detect portable‑mode command‑line switches (restores pre‑5.3 behavior)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected