From dcc1a503c4bf07d88ad852434d05c2972c7c3349 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 16 Apr 2015 01:52:31 -0400 Subject: Migrated newcontrol.c and button.c on the Windows backend. --- new/ui_windows.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'new/ui_windows.h') diff --git a/new/ui_windows.h b/new/ui_windows.h index 70badb4..806cac1 100644 --- a/new/ui_windows.h +++ b/new/ui_windows.h @@ -11,7 +11,7 @@ This file assumes that you have included and "ui.h" beforehand. It p #define uiControlHWND(c) ((HWND) uiControlHandle(c)) #define uiParentHWND(p) ((HWND) uiParentHandle(p)) -// uiWindowsNewControl() creates a new uiControl with the given Windows API control inside. +// uiWindowsNewControl() initializes the given uiControl with the given Windows API control inside. // You will need to provide the preferredSize() method yourself. typedef struct uiWindowsNewControlParams uiWindowsNewControlParams; struct uiWindowsNewControlParams { @@ -34,7 +34,7 @@ struct uiWindowsNewControlParams { // This is called in WM_DESTROY. void (*onWM_DESTROY)(uiControl *c); }; -uiControl *uiWindowsNewControl(uiWindowsNewControlParams *); +void uiWindowsNewControl(uiControl *c, uiWindowsNewControlParams *p); // This contains the Windows-specific parts of the uiSizing structure. // baseX and baseY are the dialog base units. -- cgit v1.2.3