MCPcopy Create free account
hub / github.com/bwapi/bwapi / GetBorderRect

Function GetBorderRect

bwapi/BWAPI/Source/WMode.cpp:71–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void GetBorderRect(HWND hWnd, LPRECT lpRect)
72{
73 RECT clientRct;
74 RECT windowRct;
75 GetClientRect(hWnd, &clientRct);
76 ClientToScreen(hWnd, (LPPOINT)&clientRct.left);
77 ClientToScreen(hWnd, (LPPOINT)&clientRct.right);
78 GetWindowRect(hWnd, &windowRct);
79 if ( lpRect )
80 {
81 lpRect->left = clientRct.left - windowRct.left;
82 lpRect->top = clientRct.top - windowRct.top;
83 lpRect->right = windowRct.right - clientRct.right;
84 lpRect->bottom = windowRct.bottom - clientRct.bottom;
85 }
86}
87
88void GetBorderSize(HWND hWnd, LPSIZE lpSize)
89{

Callers 1

GetBorderSizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected