MCPcopy Create free account
hub / github.com/DiscordMessenger/dm / ScreenToClientRect

Function ScreenToClientRect

src/windows/WinUtils.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void ScreenToClientRect(HWND hWnd, RECT* rect)
84{
85 POINT p1 { rect->left, rect->top }, p2 { rect->right, rect->bottom };
86 ScreenToClient(hWnd, &p1);
87 ScreenToClient(hWnd, &p2);
88 rect->left = p1.x;
89 rect->top = p1.y;
90 rect->right = p2.x;
91 rect->bottom = p2.y;
92}
93
94void GetChildRect(HWND parent, HWND child, LPRECT rect)
95{

Callers 3

GetChildRectFunction · 0.85
InitializeMethod · 0.85
InitializeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected