2.3.1.4 GETN_ADD_LEFT_CHECK


Name

GETN_ADD_LEFT_CHECK

Declaration

#define GETN_ADD_LEFT_CHECK(_CHECK)	_tmpSubNode.SetAttribute(STR_ATTRIB_DYNACONTROL_USE_CHECK, _CHECK ? 1 : 0);

Remark

This macro creates a checkbox control on the left side of a TreeNode.

Parameters

_CHECK
[input] the default states of checkbox.
If true, the checkbox is checked as default.
If false, the checkbox is unchecked as default.

Return

Examples

EX1

void GETN_ADD_LEFT_CHECK_ex1()
{
    GETN_TREE( tr );
    GETN_STR_GROUP(stats, "Please pick a few US Stats", "MA", "|MA|CA|RI|VT|NY")GETN_ADD_LEFT_CHECK(true)

    if( GetNBox( tr ))
        out_tree( tr );
}

Header to Included

GetNBox.h

Reference