GETN_SET_EVENT_EX_HANDLER
#define GETN_SET_EVENT_EX_HANDLER(_TR, _PFN) GETN_SET_EVENT_EX_HANDLER_ATT(_TR, _PFN, STR_ATTRIB_HANDLER_RC)
This macro is used to set treenode event handler. For detail usage, please see GETN_OPTION_EVENT_EX
EX1
#include <GetNbox.h> bool node_event(TreeNode& tr, int nRow, int nCol, TreeNode& trNode, DWORD nEventInfo, int nCntrlType, WndContainer& getNContainer) { //see GETN_OPTION_EVENT_EX example return true; } void GETN_SET_EVENT_EX_HANDLER_ex1() { GETN_TREE(trRoot) GETN_STR(STR, "Event", "Click me") //change the text will invoke event handler GETN_SET_EVENT_EX_HANDLER(trRoot.STR, node_event) if ( GetNBox(trRoot) ) out_tree(trRoot); return; }
GETN_OPTION_EVENT, GETN_OPTION_EVENT_EX
GetNBox.h