summaryrefslogtreecommitdiff
path: root/newctrl/container_windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'newctrl/container_windows.c')
-rw-r--r--newctrl/container_windows.c9
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;