// CISTestINI_mod_INI.c #include "CISTestINI_DEF.h" void Proc_INI_AddItem(void) { int iniGroup; char SectionName[100]; // 예시 //iniGroup = CIS_INI_GROUP_General; //strcpy(SectionName, "General"); // 변수의 주소, Tag명, 기본값, PanelHandle, Control ID //Gini.AddItemStringGroup(&Gini, SectionName, iniGroup, &(glovar.General.Str[0]), "Str", "", GphPANEL, PANEL_str); //Gini.AddItemIntGroup (&Gini, SectionName, iniGroup, &(glovar.General.numInt), "numInt", 0, GphPANEL, PANEL_numInt); //Gini.AddItemDoubleGroup(&Gini, SectionName, iniGroup, &(glovar.General.numDouble), "numDouble", 0.0, GphPANEL, PANEL_numDouble); iniGroup = CIS_INI_GROUP_General; // Panel 위치(정수형) strcpy(SectionName, "Panel"); Gini.AddItemInt (&Gini, SectionName, iniGroup, &(glovar.General.panel_top), "panel_top", 29, 0, 0); Gini.AddItemInt (&Gini, SectionName, iniGroup, &(glovar.General.panel_left), "panel_left", 5, 0, 0); // 이후의 Section Name은 "General" strcpy(SectionName, "General"); // 문자열 Gini.AddItemString(&Gini, SectionName, iniGroup, &(glovar.General.strSTRING[0]), "strSTRING", "", GpanelHandle, PANEL_strSTRING); // 정수형 Gini.AddItemInt (&Gini, SectionName, iniGroup, &(glovar.General.bsPower), "bsPower", 0, GpanelHandle, PANEL_bsPower); Gini.AddItemInt (&Gini, SectionName, iniGroup, &(glovar.General.chkOpt1), "chkOpt1", 0, GpanelHandle, PANEL_chkOpt1); // 실수형 Gini.AddItemDouble(&Gini, SectionName, iniGroup, &(glovar.General.numSettingTime), "numSettingTime", 0.0, GpanelHandle, PANEL_numSettingTime); }