GETN_DATE
#define GETN_DATE(_NODE_NAME, _NODE_LABEL, _DEFAULT_VAL) _tmpSubNode = _tmpNode.AddNumericNode(_DEFAULT_VAL, #_NODE_NAME, TRGP_DATE);TREE_ADD_LABEL(_NODE_LABEL);
This macro creates a date picker edit box in the dialogbox.
EX1
#include <GetNBox.h> void GETN_DATE_ex1() { GETN_TREE(tree) SYSTEMTIME st; double dDate; GetSystemTime(&st); SystemTimeToJulianDate(&dDate, &st); GETN_DATE(Date, "Date", dDate) if ( GetNBox(tree) ) { dDate = tree.Date.dVal; string strDate = get_date_str(dDate); out_str(strDate); } }
GETN_TIME, GETN_DATETIME_CUSTOM_FORMAT
GetNbox.h