From 0ca0dcaf2de87d3750d19ed6fed1a0c359a65246 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 29 Apr 2015 10:46:09 -0400 Subject: [PATCH] Migrated the Windows basic controls. Rewrite in the new/ folder done! --- new/windows/GNUmakeinc.mk | 4 ++++ {windows => new/windows}/button.c | 2 +- {windows => new/windows}/checkbox.c | 2 +- {windows => new/windows}/entry.c | 2 +- {windows => new/windows}/label.c | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) rename {windows => new/windows}/button.c (98%) rename {windows => new/windows}/checkbox.c (98%) rename {windows => new/windows}/entry.c (97%) rename {windows => new/windows}/label.c (97%) diff --git a/new/windows/GNUmakeinc.mk b/new/windows/GNUmakeinc.mk index 5d9e457d..2b680b4c 100644 --- a/new/windows/GNUmakeinc.mk +++ b/new/windows/GNUmakeinc.mk @@ -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 \ diff --git a/windows/button.c b/new/windows/button.c similarity index 98% rename from windows/button.c rename to new/windows/button.c index 0f0b2d93..7219ca60 100644 --- a/windows/button.c +++ b/new/windows/button.c @@ -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; diff --git a/windows/checkbox.c b/new/windows/checkbox.c similarity index 98% rename from windows/checkbox.c rename to new/windows/checkbox.c index 5d39622a..b5bd6c56 100644 --- a/windows/checkbox.c +++ b/new/windows/checkbox.c @@ -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; diff --git a/windows/entry.c b/new/windows/entry.c similarity index 97% rename from windows/entry.c rename to new/windows/entry.c index 2aa066a2..62ab8cf3 100644 --- a/windows/entry.c +++ b/new/windows/entry.c @@ -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; diff --git a/windows/label.c b/new/windows/label.c similarity index 97% rename from windows/label.c rename to new/windows/label.c index 916d0ca8..95256fef 100644 --- a/windows/label.c +++ b/new/windows/label.c @@ -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;