diff --git a/redo/windows/radiobuttons.c b/redo/windows/radiobuttons.c index 0ec5ca77..3dd6f391 100644 --- a/redo/windows/radiobuttons.c +++ b/redo/windows/radiobuttons.c @@ -7,6 +7,8 @@ struct radiobuttons { uiControl *parent; }; +uiDefineControlType(uiRadioButtons, uiTypeRadioButtons, struct radiobuttons) + static BOOL onWM_COMMAND(uiControl *c, HWND clicked, WORD code, LRESULT *lResult) { struct radiobuttons *r = (struct radiobuttons *) c; diff --git a/redo/windows/window.c b/redo/windows/window.c index 094e589e..251d755e 100644 --- a/redo/windows/window.c +++ b/redo/windows/window.c @@ -178,7 +178,7 @@ static void windowEnable(uiControl *c) EnableWindow(w->hwnd, TRUE); if (w->child != NULL) - uiControlContainerEnable(w->child); + uiControlUpdateState(w->child); } static void windowDisable(uiControl *c) @@ -187,7 +187,7 @@ static void windowDisable(uiControl *c) EnableWindow(w->hwnd, FALSE); if (w->child != NULL) - uiControlContainerDisable(w->child); + uiControlUpdateState(w->child); } static void windowSysFunc(uiControl *c, uiControlSysFuncParams *p)