|
| CTreeViewModel () |
|
| ~CTreeViewModel () |
|
void | ModifyTreeViewModelFlags (UINT style, UINT op=ADD_FLAGS, BOOL bRefresh=FALSE) |
| 设置树模型标志
|
|
UINT | IsHasTreeViewModelFlags (UINT flags) const |
|
UINT | GetTreeViewModelFlags () const |
|
void | ChangeModelThemeColors (int theme) |
|
void | SetLevelLineColor (COLORREF color) |
|
int | GetRowHeight (BOOL display=TRUE) const |
|
void | SetRowHeight (int h) |
|
int | GetNodeChildCount (CTreeModelNode *node) |
|
void | SetLevelLineType (PenType type) |
|
void | SetItemRoundRadius (RoundRectRadius &radius) |
|
void | SetItemRoundSize (int rx, int ry) |
|
void | SetSpacing (int space) |
|
void | SetExpandSize (int size) |
|
void | SetChildOffsetX (int size) |
|
void | SetCheckBoxSize (int size) |
|
void | SetSearchMode (BOOL bSearch) |
|
void | SetCheckBoxImage (SelectState state, GImageIconInfo *img) |
|
void | MatchTextNode (LPCTSTR str) |
|
BOOL | Expand (CTreeModelNode *hItem, BOOL bExpand) |
|
BOOL | IsExpand (CTreeModelNode *hItem) const |
|
BOOL | IsInVisibleView (CTreeModelNode *hItem) const |
|
void | Clear (BOOL bErase=TRUE) |
|
BOOL | RemoveItem (CTreeModelNode *hItem) |
|
BOOL | IsTreeEmpty () const |
|
CTreeModelNode * | RootNode () |
|
CTreeModelNode * | InsertTreeNode (CTreeModelNode *parent, CTreeModelNode *prev, std::shared_ptr< CNodeSpanCell > item) |
|
void | PrintToFile (FILE *fp, LPCSTR space_prefix=" ") const |
|
CTreeModelNode * | SelectItem (CTreeModelNode *item) |
|
CTreeModelNode * | SetHighLightItem (CTreeModelNode *item) |
|
CTreeModelNode * | GetTreeLeafEntry (CTreeModelNode *node) |
|
CTreeModelNode * | GetTreeUpEntry (CTreeModelNode *node) |
|
CTreeModelNode * | MoveTreeNodeStep (CTreeModelNode *node, int step) |
|
CTreeModelNode * | PtInTreeNode (int dy) |
|
CTreeModelNode * | GetRowNode (int row) const |
|
CNodeData * | GetNodeData (int row, int col) const |
|
| MouseDragHelper () |
|
| ~MouseDragHelper () |
|
void | SetBeginDragPoint (POINT pt) |
|
void | UpdateCurrentDragPoint (POINT pt) |
|
SIZE | MoveOffset () const |
|
POINT | TargetPoint () const |
|
void | SetDragState (DragStateFlag state) |
|
DragStateFlag | DragState () const |
|
void | SetDragMoveEnable (BOOL bEnableDrag) |
|
BOOL | IsDragMoveEnable () const |
|
|
void | OnTranslateLanguage () |
|
void | SetAllSelectState (bool state) |
|
UINT | GetRowCount () const |
|
void | ReBuildDepth () |
|
void | DrawTreeCell (CNodeSpanCell *pCell, RECT rcView, COLORREF textColor, UINT textAlignFlag) |
|
BOOL | PtInTreeItemCheckBox (CTreeModelNode *hItem, POINT pt) |
|
BOOL | PtInExpandBtn (CTreeModelNode *hItem, POINT pt) |
|
void | SetTreeItemCheckBox (CTreeModelNode *hItem, SelectState state) |
|
void | SetChildItemCheckState (CTreeModelNode *hchild, SelectState nstate) |
|
void | DrawTreeItem (ISurface *pSurface, RECT *lpUpdate, CTreeModelNode *node, COLORREF color, int dx=0) |
|
void | DrawTreeDataCell (ISurface *pSurface, int paintState, RECT *lpUpdate, CTreeModelNode *node, RECT rcCell, COLORREF color) |
|
void | DrawTreeItemLevelLine (ISurface *pSurface, RECT &rcView, CTreeModelNode *node, COLORREF color, int fontHeight, int firstRow, int scroll_x, int scroll_y) |
|
void | RefreshTreeNode (CTreeModelNode *node1, CTreeModelNode *node2, int base_x, int width) |
|
BOOL | GetTreeNodeCellYBound (CTreeModelNode *node, int &y1, int &y2) const |
|
void | ShellModelAttribute (const BeString &szName, const BeString &szText) |
| 命令控制和属性设置接口
|
|
virtual void | OnInvalidateRect (RECT *rc, BOOL bClient)=0 |
|
virtual int | GetModelColumCount ()=0 |
|
virtual POINT | GetScrollOffsetPoint ()=0 |
|
virtual void | OnSelectItem (CTreeModelNode *item)=0 |
|