GETN_STRLIST
#define GETN_STRLIST(_NODE_NAME, _NODE_LABEL, _DEFAULT_VAL, _COMBO_STR) _tmpSubNode = _tmpNode.AddTextNode(_DEFAULT_VAL, #_NODE_NAME, TRGP_STR);TREE_ADD_LABEL(_NODE_LABEL); _tmpSubNode.SetAttribute(STR_COMBO_ATTRIB, _COMBO_STR); GETN_OCNTRL_OPTION(OCNTRLPARAM1_NOT_LOCALIZED)
This macro creates a string combo list in the dialogbox.
EX1
#include <GetNbox.h> void GETN_STRLIST_ex1() { GETN_BOX( treeTest ) // editable, choose one from list or directly type string into control GETN_STRLIST(WksName, "Worksheet Name", "one", "|one|two|three|four|five") // only can choose one from drop-down list GETN_STRLIST(datatype, "Data Type", "double", "int|short|double") if( GetNBox( treeTest )) out_tree( treeTest ); }
GETN_COMBO
GetNbox.h