| 23 | }; |
| 24 | |
| 25 | bool 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 | |
| 36 | bool GetWindowRectInfo(HWND hwnd, Rect &rect) { |
| 37 | RECT rc = {}; |
no outgoing calls
no test coverage detected