GETN_PICTURE

 

Name

GETN_PICTURE

Declaration

#define     GETN_PICTURE(_NODE_NAME, _NODE_LABEL)                         _tmpSubNode = _tmpNode.AddNode(#_NODE_NAME, TRGP_PICTURE);TREE_ADD_LABEL(_NODE_LABEL);                                                                                                                                                     _tmpSubNode.strVal = "";

Remark

This macro creates a picture holder in the dialogbox.

Parameters

_NODE_NAME
[input] the name of the new node to be added to the tree
_NODE_LABEL
[input] the string value to show picture holder label in the dialogbox

Return

Examples

EX1

#include <GetNBox.h>
void GETN_PICTURE_ex1()
{
    GraphPage gp;
    gp.Create("origin.otp");
    PictureHolder ph;
    page_get_picture(gp, ph);
    GETN_TREE( treeTest );
    GETN_PICTURE(Picture, "Picture");
    treeTest.Picture.pict = ph;
    GetNBox(treeTest, "test", "Test...", NULL, NULL);
    out_tree(treeTest);
}

See Also

header to Include

GetNbox.h

Reference