MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / clientSize

Method clientSize

source/src/tools/window.h:56–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 static RECT rect(HWND wnd) { RECT rect = {}; GetWindowRect(wnd, &rect); return rect; }
55 static RECT childRect(HWND parent, HWND child) { RECT rParent = {}; RECT rChild = {}; GetWindowRect(parent, &rParent); GetWindowRect(child, &rChild); return { rChild.left - rParent.left, rChild.top - rParent.top, rChild.right - rParent.left, rChild.bottom - rParent.top }; }
56 static SIZE clientSize(HWND wnd) { RECT rect; GetClientRect(wnd, &rect); return { rect.right, rect.bottom }; }
57 static bool setTop(HWND wnd, bool top = true)
58 {
59 if (top) return SetWindowPos(wnd, HWND_TOP, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected