From f726b74d32baf3002b5656591029f34168027e16 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 12 Apr 2015 23:14:56 -0400 Subject: Fix helper: get rid of direct casts to HWND to make errors more obvious. --- new/button_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'new/button_windows.c') 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 -- cgit v1.2.3