| 34 | } |
| 35 | |
| 36 | bool 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 | |
| 49 | bool GetVisibleWindowRectInfo(HWND hwnd, Rect &rect) { |
| 50 | RECT rc = {}; |
no outgoing calls
no test coverage detected