More enable/disable container stuff.

This commit is contained in:
Pietro Gagliardi 2015-05-04 11:09:28 -04:00
parent 37140cf6f0
commit d98a2291cb
1 changed files with 2 additions and 2 deletions

View File

@ -106,12 +106,12 @@ static void singleDisable(uiControl *c)
EnableWindow(s->hwnd, FALSE);
}
static void singleEnable(uiControl *c)
static void singleSysFunc(uiControl *c, uiControlSysFuncParams *p)
{
singleHWND *s = (singleHWND *) (c->Internal);
switch (p->Func) {
case uiWindowsSysFuncContainerEnabled:
case uiWindowsSysFuncContainerEnable:
s->containerDisabled = 0;
if (!s->userDisabled)
EnableWindow(s->hwnd, TRUE);