| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected