More fixes.

This commit is contained in:
Pietro Gagliardi 2015-05-30 02:14:13 -04:00
parent 44bbad70e5
commit 7da5e52621
2 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,8 @@ struct radiobuttons {
uiControl *parent; uiControl *parent;
}; };
uiDefineControlType(uiRadioButtons, uiTypeRadioButtons, struct radiobuttons)
static BOOL onWM_COMMAND(uiControl *c, HWND clicked, WORD code, LRESULT *lResult) static BOOL onWM_COMMAND(uiControl *c, HWND clicked, WORD code, LRESULT *lResult)
{ {
struct radiobuttons *r = (struct radiobuttons *) c; struct radiobuttons *r = (struct radiobuttons *) c;

View File

@ -178,7 +178,7 @@ static void windowEnable(uiControl *c)
EnableWindow(w->hwnd, TRUE); EnableWindow(w->hwnd, TRUE);
if (w->child != NULL) if (w->child != NULL)
uiControlContainerEnable(w->child); uiControlUpdateState(w->child);
} }
static void windowDisable(uiControl *c) static void windowDisable(uiControl *c)
@ -187,7 +187,7 @@ static void windowDisable(uiControl *c)
EnableWindow(w->hwnd, FALSE); EnableWindow(w->hwnd, FALSE);
if (w->child != NULL) if (w->child != NULL)
uiControlContainerDisable(w->child); uiControlUpdateState(w->child);
} }
static void windowSysFunc(uiControl *c, uiControlSysFuncParams *p) static void windowSysFunc(uiControl *c, uiControlSysFuncParams *p)