/[winpt]/trunk/Include/wptCommonCtl.h
ViewVC logotype

Diff of /trunk/Include/wptCommonCtl.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 37 by werner, Thu Oct 27 19:12:40 2005 UTC revision 329 by twoaday, Fri Sep 25 16:08:14 2009 UTC
# Line 1  Line 1 
1  /* wptCommonCtl.h - Win32 Imagelist headerfile  /* wptCommonCtl.h - Win32 Imagelist headerfile
2   *      Copyright (C) 2003 Andreas Jobs   *      Copyright (C) 2004-2006, 2009 Timo Schulz
  *      Copyright (C) 2004, 2005 Timo Schulz  
3   *   *
4   * This file is part of WinPT.   * This file is part of WinPT.
5   *   *
# Line 13  Line 12 
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14   * General Public License for more details.   * General Public License for more details.
  *  
  * You should have received a copy of the GNU General Public License  
  * along with WinPT; if not, write to the Free Software Foundation,  
  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA  
15   */   */
16    
17  #ifndef WPT_COMMONCTL_H  #ifndef WPT_COMMONCTL_H
# Line 26  Line 21 
21    
22  /* Symbol constants for the toolbar. */  /* Symbol constants for the toolbar. */
23  enum km_sym_tid_t {  enum km_sym_tid_t {
24      IMI_KEY_DELETE = 0,      IMI_KEY_NEW=0,  
25        IMI_KEY_DELETE,
26      IMI_KEY_PROPS,      IMI_KEY_PROPS,
27      IMI_KEY_SIGN,      IMI_KEY_SIGN,
28        IMI_KEY_SEARCH,
29        IMI_KEY_FILE_IMPORT,
30        IMI_KEY_FILE_EXPORT,
31      IMI_KEY_IMPORT,      IMI_KEY_IMPORT,
32      IMI_KEY_EXPORT,      IMI_KEY_EXPORT,    
33      IMI_SORT_UPARROW,      IMI_SORT_UPARROW,
34      IMI_SORT_DOWNARROW,      IMI_SORT_DOWNARROW,
35      IMI_EXIT,      IMI_EXIT,
# Line 56  struct listview_ctrl_s { Line 55  struct listview_ctrl_s {
55      HWND ctrl;          /* the actual listview window. */      HWND ctrl;          /* the actual listview window. */
56      int cols;           /* number of columns. */      int cols;           /* number of columns. */
57      int items;          /* number of items. */      int items;          /* number of items. */
58        unsigned int ext_chkbox:1;  /* exteneded style: checkboxes. */
59        HIMAGELIST hil;     /* Imagelist context. */
60  };  };
61  typedef struct listview_ctrl_s * listview_ctrl_t;  typedef struct listview_ctrl_s * listview_ctrl_t;
62    
63  int listview_new (listview_ctrl_t *ctx);  
64    void listview_new (listview_ctrl_t *ctx, HWND ctrl);
65  void listview_release (listview_ctrl_t ctx);  void listview_release (listview_ctrl_t ctx);
66  int listview_add_column (listview_ctrl_t ctx, listview_column_t col);  int listview_add_column (listview_ctrl_t ctx, listview_column_t col);
67  int  listview_add_item_pos (listview_ctrl_t ctx, int pos);  int  listview_add_item_pos (listview_ctrl_t ctx, int pos);
# Line 69  void listview_add_sub_item (listview_ctr Line 71  void listview_add_sub_item (listview_ctr
71                              const char *text);                              const char *text);
72  int listview_count_items (listview_ctrl_t ctx, int curr_sel);  int listview_count_items (listview_ctrl_t ctx, int curr_sel);
73  int listview_del_item (listview_ctrl_t ctx, int pos);  int listview_del_item (listview_ctrl_t ctx, int pos);
74  int listview_del_all (listview_ctrl_t ctx);  int listview_del_sel_items (listview_ctrl_t ctx);
75    int listview_del_all_items (listview_ctrl_t ctx);
76  int listview_get_item_state (listview_ctrl_t ctx, int pos);  int listview_get_item_state (listview_ctrl_t ctx, int pos);
77    int listview_get_selected_item (listview_ctrl_t lv);
78  void* listview_get_item2 (listview_ctrl_t ctx, int pos);  void* listview_get_item2 (listview_ctrl_t ctx, int pos);
79  int listview_set_item2 (listview_ctrl_t ctx, int pos, void *magic);  int listview_set_item2 (listview_ctrl_t ctx, int pos, void *magic);
80  int listview_sort_items (listview_ctrl_t ctx, int sortby,  int listview_sort_items (listview_ctrl_t ctx, int sortby,
# Line 79  int listview_get_curr_pos (listview_ctrl Line 83  int listview_get_curr_pos (listview_ctrl
83  int listview_get_item_text (listview_ctrl_t ctx, int entry, int pos,  int listview_get_item_text (listview_ctrl_t ctx, int entry, int pos,
84                               char *text, int maxbytes);                               char *text, int maxbytes);
85  void listview_set_ext_style (listview_ctrl_t ctx);  void listview_set_ext_style (listview_ctrl_t ctx);
86    void listview_set_grid_style (listview_ctrl_t ctx);
87    void listview_set_chkbox_style (listview_ctrl_t ctx);
88  int listview_set_column_order (listview_ctrl_t ctx, int *array);  int listview_set_column_order (listview_ctrl_t ctx, int *array);
89    int listview_set_column_width (listview_ctrl_t ctx, int col, int width);
90  int listview_del_items (listview_ctrl_t ctx);  int listview_del_items (listview_ctrl_t ctx);
91  void listview_select_all (listview_ctrl_t ctx);  void listview_select_all (listview_ctrl_t ctx);
92    void listview_deselect_all (listview_ctrl_t ctx);
93  void listview_select_one (listview_ctrl_t ctx, int pos);  void listview_select_one (listview_ctrl_t ctx, int pos);
94  int listview_find (listview_ctrl_t ctx, const char * str);  int listview_find (listview_ctrl_t ctx, const char * str, int substr);
95  void listview_scroll (listview_ctrl_t ctx, int oldpos, int newpos);  void listview_scroll (listview_ctrl_t ctx, int oldpos, int newpos);
96    int listview_del_column (listview_ctrl_t ctx, int pos);
97    int listview_add_item_image (listview_ctrl_t ctx, const char *text, int image);
98    void listview_set_image_list (listview_ctrl_t ctx, int cx, int cy,
99                                  HICON *ico, DWORD nicons);
100    
101  /*-- Image List --*/  /*-- Image List --*/
102  extern HIMAGELIST glob_imagelist;  int imagelist_load (HWND hwnd, HIMAGELIST *r_il);
103    int imagelist_destroy (HIMAGELIST il);
104  int imagelist_load (HWND hwnd);  int imagelist_getindex (HIMAGELIST il, int icon);
105  int imagelist_destroy (void);  
106  int imagelist_getindex (int icon);  int b_imagelist_load (HWND hwnd, HIMAGELIST *r_il);
107    int b_imagelist_destroy (HIMAGELIST il);
108    int b_imagelist_getindex (HIMAGELIST il, int bitmap);
109    
110  #endif /*WPT_COMMONCTL_H*/  #endif /*WPT_COMMONCTL_H*/

Legend:
Removed from v.37  
changed lines
  Added in v.329

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26