-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTreeGrid.h
More file actions
63 lines (55 loc) · 1.67 KB
/
TreeGrid.h
File metadata and controls
63 lines (55 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include "Head.h"
#pragma comment(lib,"head.lib")
typedef struct _RSTRUCT_TREEGRID_ {
#define YCL_TREEGRID "YTreeGrid"
#define WM_TREEVIEWCUSTOMDRAW (UINT)(WM_USER+0x0310)
#define ID_TREEVIEW_01 0x0001
#define ID_GRIDHEADER_01 0x0002
HWND head;
HWND tree;
}RTreeGrid,*pTreeGrid;
LRESULT CALLBACK TreeGridOwnProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
int TreeGrid_CtrlCreate(HWND treeGrid);
int TreeGrid_Clear(HWND treegrid);
int TreeGrid_InitialSettings(HWND hwnd);
pTreeGrid TreeGrid_GetSettings(HWND hwnd);
int TreeGrid_ClearSettings(HWND hwnd);
typedef enum FRAME_AREA_TYPE {
#define SCROLLBAR_PIXLS 13
#define THUMB_MIN_PIXLS 50
ZCLOSE,
ZMAX,
ZMIN,
ZICON,
ZMENUBAR,
ZCAPTION,
ZTEXTTITLE,
ZCONFIG,
ZMSG,
ZHSCROLL,
ZHSTHUMB,
ZVSCROLL,
ZVSTHUMB,
ZNOCARE
} EFNCZone;
typedef struct _RSTRUCT_TREEINFO_ {
HDC memdc;
HBITMAP bmp;
HDC hdc;
WNDPROC proc;
WNDPROC pre_proc;
POINT drag_pt;
POINT drag_pos;
POINT view_offset;
HTREEITEM hover_item;
HTREEITEM check_item;
}RTreeStyle,*pTreeStyle;
int Tree_InitialSettings(HWND hwnd);
pTreeStyle Tree_GetSettings(HWND hwnd);
int Tree_ClearSettings(HWND hwnd);
int Tree_Draw(HWND hwnd,WPARAM wParam,LPARAM lParam);
int Tree_DrawItem(HWND hwnd,HDC hdc,RECT rc,int step_level,LPTVITEM pti);
int Tree_NCCalcSize(HWND hwnd,WPARAM wParam,LPARAM lParam);
int Tree_GetZoneRect(HWND hwnd,EFNCZone zone,LPRECT prc,BOOL isallign_top_left);
int Tree_NCDrawScrollBar(HWND hwnd,UINT scrolltype);
LRESULT CALLBACK TreeOwnProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);