From 23e3230156c1021abc990d8ad40a3de444bbd5a8 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 4 May 2015 14:32:55 -0400 Subject: [PATCH] Fixed control enabling on Windows uiWindows. --- windows/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/window.c b/windows/window.c index c35ef1dc..757f23a2 100644 --- a/windows/window.c +++ b/windows/window.c @@ -1,8 +1,6 @@ // 27 april 2015 #include "uipriv_windows.h" -// TODO enable/disable container - #define windowClass L"libui_uiWindowClass" struct window { @@ -157,6 +155,7 @@ static void windowEnable(uiControl *c) struct window *w = (struct window *) c; EnableWindow(w->hwnd, TRUE); + uiControlEnable(uiControl(w->bin)); } static void windowDisable(uiControl *c) @@ -164,6 +163,7 @@ static void windowDisable(uiControl *c) struct window *w = (struct window *) c; EnableWindow(w->hwnd, FALSE); + uiControlDisable(uiControl(w->bin)); } static char *windowTitle(uiWindow *ww)