From a7293951f75d92a80d4d986ec7dda3fa25ab640b Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 7 Apr 2015 04:02:21 -0400 Subject: Wrote up the initial uiButton implementation. It (mostly; just needs text and for that I need to add a uiControlHandle()) works! --- new/window_windows.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'new/window_windows.c') diff --git a/new/window_windows.c b/new/window_windows.c index d5f675e..3f2abb2 100644 --- a/new/window_windows.c +++ b/new/window_windows.c @@ -133,3 +133,9 @@ void uiWindowOnClosing(uiWindow *w, int (*f)(uiWindow *, void *), void *data) w->onClosing = f; w->onClosingData = data; } + +void uiWindowSetChild(uiWindow *w, uiControl *c) +{ + w->child = c; + (*(w->child->setParent))(w->child, (uintptr_t) (w->hwnd)); +} -- cgit v1.2.3