diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-18 09:06:17 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-18 09:06:17 -0400 |
| commit | 1face3a4554022c9336e89822df586560ef62077 (patch) | |
| tree | ac674cff7261ca0a9508d8ae66b941ed10aa9874 /newctrl/container_windows.c | |
| parent | 45acb35a6d89c2e7c7d2233f3613d04253f88922 (diff) | |
Implemented container.bounds() on Windows.
Diffstat (limited to 'newctrl/container_windows.c')
| -rw-r--r-- | newctrl/container_windows.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/newctrl/container_windows.c b/newctrl/container_windows.c index bdb2e08..7910b92 100644 --- a/newctrl/container_windows.c +++ b/newctrl/container_windows.c @@ -57,6 +57,15 @@ HWND newContainer(void) return hwnd; } +RECT containerBounds(HWND hwnd) +{ + RECT r; + + if (GetClientRect(hwnd, &r) == 0) + xpanic("error getting container client rect for container.bounds()", GetLastError()); + return r; +} + void calculateBaseUnits(HWND hwnd, int *baseX, int *baseY, LONG *internalLeading) { HDC dc; |
