Migrated the Windows basic controls. Rewrite in the new/ folder done!

This commit is contained in:
Pietro Gagliardi 2015-04-29 10:46:09 -04:00
parent b134967ab0
commit 0ca0dcaf2d
5 changed files with 8 additions and 4 deletions

View File

@ -3,10 +3,14 @@
osCFILES = \
windows/alloc.c \
windows/bin.c \
windows/button.c \
windows/checkbox.c \
windows/comctl32.c \
windows/container.c \
windows/debug.c \
windows/entry.c \
windows/init.c \
windows/label.c \
windows/main.c \
windows/menu.c \
windows/newcontrol.c \

View File

@ -100,7 +100,7 @@ uiButton *uiNewButton(const char *text)
uiWindowsNewControl(uiControl(b), &p);
uiFree(wtext);
b->hwnd = HWND(b);
b->hwnd = (HWND) uiControlHandle(uiControl(b));
b->onClicked = defaultOnClicked;

View File

@ -115,7 +115,7 @@ uiCheckbox *uiNewCheckbox(const char *text)
uiWindowsNewControl(uiControl(c), &p);
uiFree(wtext);
c->hwnd = HWND(c);
c->hwnd = (HWND) uiControlHandle(uiControl(c));
c->onToggled = defaultOnToggled;

View File

@ -62,7 +62,7 @@ uiEntry *uiNewEntry(void)
p.onDestroyData = e;
uiWindowsNewControl(uiControl(e), &p);
e->hwnd = HWND(e);
e->hwnd = (HWND) uiControlHandle(uiControl(e));
uiControl(e)->PreferredSize = preferredSize;

View File

@ -68,7 +68,7 @@ uiLabel *uiNewLabel(const char *text)
uiWindowsNewControl(uiControl(l), &p);
uiFree(wtext);
l->hwnd = HWND(l);
l->hwnd = (HWND) uiControlHandle(uiControl(l));
uiControl(l)->PreferredSize = preferredSize;