static void uiFormSyncEnableState(uiWindowsControl *c, int enabled) { uiForm *f = uiForm(c); if (uiWindowsShouldStopSyncEnableState(uiWindowsControl(f), enabled)) return; for (const struct formChild &fc : *(f->controls)) uiWindowsControlSyncEnableState(uiWindowsControl(fc.c), enabled); }
static void uiGroupSyncEnableState(uiWindowsControl *c, int enabled) { uiGroup *g = uiGroup(c); if (uiWindowsShouldStopSyncEnableState(uiWindowsControl(g), enabled)) return; EnableWindow(g->hwnd, enabled); if (g->child != NULL) uiWindowsControlSyncEnableState(uiWindowsControl(g->child), enabled); }