From 1face3a4554022c9336e89822df586560ef62077 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 18 Oct 2014 09:06:17 -0400 Subject: Implemented container.bounds() on Windows. --- newctrl/container_windows.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'newctrl/container_windows.c') 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; -- cgit v1.2.3