summaryrefslogtreecommitdiff
path: root/new/button_windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'new/button_windows.c')
-rw-r--r--new/button_windows.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/new/button_windows.c b/new/button_windows.c
index 0bd3021..f89a197 100644
--- a/new/button_windows.c
+++ b/new/button_windows.c
@@ -37,7 +37,7 @@ static void preferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *
HWND hwnd;
SIZE size;
- hwnd = (HWND) uiControlHandle(c);
+ hwnd = uiControlHWND(c);
// try the comctl32 version 6 way
size.cx = 0; // explicitly ask for ideal size