mNode

Data Structures

Defines

Typedefs

Enumerations

Functions

Variables


Detailed Description

Id
mnode.h 1838 2010-04-08 08:19:34Z xwyan

Copyright (C) 2009 Feynman Software.


Define Documentation

#define NCSS_NODE_DISABLED   0x0040

Disabled Node.

Definition at line 85 of file mnode.h.

#define NCSS_NODE_HIDEIMAGE   0x0020

Don't show image.

Definition at line 79 of file mnode.h.

#define NCSS_NODE_HIDETEXT   0x0010

Don't show text.

Definition at line 73 of file mnode.h.

#define NCSS_NODE_LTEXTBS   0x0002

Large Icon mode. Image on the top and text on the bottom.

Definition at line 59 of file mnode.h.

#define NCSS_NODE_LTEXTRS   0x0000

Image on the left and text on the right. default style.

Definition at line 46 of file mnode.h.

#define NCSS_NODE_SHIFT   7

The bits used by mNode in style.

Definition at line 91 of file mnode.h.

#define NCSS_NODE_SMALLICON   0x0001

Small icon mode. Show small icon in normal status, or enlarge icon in selected status.

Definition at line 53 of file mnode.h.

#define NCSS_NODE_TICTACTOEMIDLET   0x0004

tictactoemidlet mode. Image includes normal and selected status.

Definition at line 65 of file mnode.h.


Typedef Documentation

typedef int(* NCS_CB_CMPNODE)(mNode *node1, mNode *node2)

The callback of node comparison function.

Definition at line 98 of file mnode.h.


Enumeration Type Documentation

enum mNodeEvent

The event id of mNode.

Enumerator:
NCSE_NODE_CONTENTCHANGED 

The content has been changed.

  • param : mNode*, the pointer to changed node.
NCSE_NODE_HEIGHTCHANGED 

The height of node has been changed.

  • param : mNodeEventData*, the data is the different value of height.
NCSE_NODE_REFRESH 

Refresh node.

  • param : mNode*, the pointer to refresh node.
NCSE_NODE_NODEADDED 

The node has been added.

  • param : mNode*, the pointer to added node.
NCSE_NODE_NODEDELETED 

The content has been deleted, Only have removed from sibling list.

  • param : mNode*, the pointer to deleted node.

Definition at line 401 of file mnode.h.

enum mNodeProp

The properties id of mNode.

Enumerator:
NCSP_NODE_HEIGHT 

The height.(Uint16)

NCSP_NODE_TEXT 

The text string.(char*)

NCSP_NODE_IMAGE 

The image. (PBITMAP)

NCSP_NODE_ADDDATA 

The additional data. (DWORD)

NCSP_NODE_ENABLED 

The enabled status of node. RW.

NCSP_NODE_SELECTED 

The selected status of node. RO.

NCSP_NODE_PARENTNODE 

The parent node.(mObject*). RO.

NCSP_NODE_FIRSTCHILD 

The first child node.(mNode*). RO.

NCSP_NODE_LASTCHILD 

The last child node. (mNode*). RO.

NCSP_NODE_CHILDRENCOUNT 

The number of children. (int). RO.

NCSP_NODE_LAYOUT 

The layout information.

NCSP_NODE_HIDETEXT 

Whether hides text or not.

NCSP_NODE_HIDEIMAGE 

Whether hides image or not.

NCSP_NODE_MAX 

The maximum value of mNode properties id.

Definition at line 438 of file mnode.h.

The found information type used by findNode.

Enumerator:
NCS_NODE_FTSTRING 

According to text string.

NCS_NODE_FTDATA 

According to additional data.

NCS_NODE_FTIMAGE 

According to image.

Definition at line 238 of file mnode.h.


Function Documentation

mNode * ncsAddNode ( mObject parent,
const char *  text,
PBITMAP  image,
int  height,
int  style,
DWORD  addData 
)

Create and add a new node to control according to parameter information.

Parameters:
parent The pointer to parent object.
text The text string.
image PBITMAP structure, the pointer to image.
height The height. If height < 0, it will use the default height of node in associated control.
style The style of node.
addData The additional data.
Returns:
The new pointer to node.
See also:
ncsCreateNode
mNode * ncsCreateNode ( mObject parent,
const char *  text,
PBITMAP  image,
int  height,
int  style,
DWORD  addData 
)

Create a new node according to parameter information.

Parameters:
parent The pointer to parent object.
text The text string.
image PBITMAP structure, the pointer to image.
height The height. If height < 0, it will use the default height of node in associated control.
style The style of node.
addData The additional data.
Returns:
The new pointer to node.

Variable Documentation

The instance of mGroupNodeClass.

See also:
mGroupNodeClass

The instance of mNodeClass.

See also:
mNodeClass
Generated on Fri Jun 10 11:18:06 2011 for New Control Set V1.0.0 API Reference by  doxygen 1.6.3