MCPcopy Create free account
hub / github.com/WallBreaker2/op / GetWindowSize

Function GetWindowSize

libop/window/WindowLayout.cpp:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23};
24
25bool GetWindowSize(HWND hwnd, int &width, int &height) {
26 RECT rc = {};
27 if (!::GetWindowRect(hwnd, &rc)) {
28 return false;
29 }
30
31 width = rc.right - rc.left;
32 height = rc.bottom - rc.top;
33 return true;
34}
35
36bool GetWindowRectInfo(HWND hwnd, Rect &rect) {
37 RECT rc = {};

Callers 2

MatchesTargetSizeFunction · 0.85
BuildLayoutSeedsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected