1 |
/* wptCommonCtl.h - Win32 Imagelist headerfile |
/* wptCommonCtl.h - Win32 Imagelist headerfile |
2 |
* Copyright (C) 2003 Andreas Jobs |
* Copyright (C) 2003 Andreas Jobs |
3 |
* Copyright (C) 2004, 2005 Timo Schulz |
* Copyright (C) 2004, 2005, 2006 Timo Schulz |
4 |
* |
* |
5 |
* This file is part of WinPT. |
* This file is part of WinPT. |
6 |
* |
* |
56 |
HWND ctrl; /* the actual listview window. */ |
HWND ctrl; /* the actual listview window. */ |
57 |
int cols; /* number of columns. */ |
int cols; /* number of columns. */ |
58 |
int items; /* number of items. */ |
int items; /* number of items. */ |
59 |
|
HIMAGELIST hil; /* Imagelist context. */ |
60 |
}; |
}; |
61 |
typedef struct listview_ctrl_s * listview_ctrl_t; |
typedef struct listview_ctrl_s * listview_ctrl_t; |
62 |
|
|
88 |
int listview_find (listview_ctrl_t ctx, const char * str); |
int listview_find (listview_ctrl_t ctx, const char * str); |
89 |
void listview_scroll (listview_ctrl_t ctx, int oldpos, int newpos); |
void listview_scroll (listview_ctrl_t ctx, int oldpos, int newpos); |
90 |
int listview_del_column (listview_ctrl_t ctx, int pos); |
int listview_del_column (listview_ctrl_t ctx, int pos); |
91 |
|
int listview_add_item_image (listview_ctrl_t ctx, const char *text, int image); |
92 |
|
void listview_set_image_list (listview_ctrl_t ctx, HICON *ico, DWORD nicons); |
93 |
|
|
94 |
/*-- Image List --*/ |
/*-- Image List --*/ |
95 |
extern HIMAGELIST glob_imagelist; |
extern HIMAGELIST glob_imagelist; |