More fixes.
This commit is contained in:
parent
44bbad70e5
commit
7da5e52621
|
@ -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;
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue