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

Function GetWindowRectInfo

libop/window/WindowLayout.cpp:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36bool GetWindowRectInfo(HWND hwnd, Rect &rect) {
37 RECT rc = {};
38 if (!::GetWindowRect(hwnd, &rc)) {
39 return false;
40 }
41
42 rect.x = rc.left;
43 rect.y = rc.top;
44 rect.width = rc.right - rc.left;
45 rect.height = rc.bottom - rc.top;
46 return true;
47}
48
49bool GetVisibleWindowRectInfo(HWND hwnd, Rect &rect) {
50 RECT rc = {};

Callers 2

GetVisibleWindowRectInfoFunction · 0.85
GetWindowMetricsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected