24 |
|
|
25 |
#include <commctrl.h> |
#include <commctrl.h> |
26 |
|
|
27 |
|
/* Symbol constants for the toolbar. */ |
28 |
enum { |
enum { |
29 |
IMI_KEY_DELETE = 0, |
IMI_KEY_DELETE = 0, |
30 |
IMI_KEY_PROPS, |
IMI_KEY_PROPS, |
42 |
|
|
43 |
typedef int (CALLBACK *listview_cmp) (LPARAM lParam1, LPARAM lParam2, |
typedef int (CALLBACK *listview_cmp) (LPARAM lParam1, LPARAM lParam2, |
44 |
LPARAM lParamSort); |
LPARAM lParamSort); |
45 |
|
|
46 |
|
/* Listview column. */ |
47 |
struct listview_column_s { |
struct listview_column_s { |
48 |
int pos; |
int pos; /* position of the column. */ |
49 |
int width; |
int width; /* width of the column. */ |
50 |
char *fieldname; |
char *fieldname; /* name of the column. */ |
51 |
}; |
}; |
52 |
typedef struct listview_column_s * listview_column_t; |
typedef struct listview_column_s * listview_column_t; |
53 |
|
|
54 |
|
/* Listview control context. */ |
55 |
struct listview_ctrl_s { |
struct listview_ctrl_s { |
56 |
HWND ctrl; |
HWND ctrl; /* the actual listview window. */ |
57 |
int cols; |
int cols; /* number of columns. */ |
58 |
int items; |
int items; /* number of items. */ |
59 |
}; |
}; |
60 |
typedef struct listview_ctrl_s * listview_ctrl_t; |
typedef struct listview_ctrl_s * listview_ctrl_t; |
61 |
|
|
89 |
/*-- Image List --*/ |
/*-- Image List --*/ |
90 |
extern HIMAGELIST glob_imagelist; |
extern HIMAGELIST glob_imagelist; |
91 |
|
|
|
|
|
|
|
|
|
|
|
92 |
int imagelist_load (HWND hwnd); |
int imagelist_load (HWND hwnd); |
93 |
int imagelist_destroy (void); |
int imagelist_destroy (void); |
94 |
int imagelist_getindex (int icon); |
int imagelist_getindex (int icon); |