MiniGUI API Reference (MiniGUI-Threads)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
iconview.h
Go to the documentation of this file.
1 
43 /*
44  * $Id: iconview.h 11576 2009-04-27 01:01:57Z dongjunjie $
45  *
46  * MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
47  * pSOS, ThreadX, NuCleus, OSE, and Win32.
48  */
49 
50 #ifndef EXT_ICONVIEW_H
51 #define EXT_ICONVIEW_H
52 
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57 
71 #define CTRL_ICONVIEW ("IconView")
72 
74 #define IV_OKAY 0
75 
76 #define IV_ERR (-1)
77 
78 #define IV_ERRSPACE (-2)
79 
84 typedef GHANDLE HIVITEM;
85 
90 typedef struct _IVITEMINFO
91 {
95  int nItem;
96 
101 
105  const char *label;
106 
109 
114 
115 } IVITEMINFO;
116 typedef IVITEMINFO* PIVITEMINFO;
117 
119 #define IVFLAG_BITMAP 0x0001
120 
121 #define IVFLAG_ICON 0x0002
122 
123 
130 MG_EXPORT int iconview_is_item_hilight (HWND hWnd, GHANDLE hivi);
131 
138 MG_EXPORT PBITMAP iconview_get_item_bitmap (GHANDLE hivi);
139 
146 MG_EXPORT const char* iconview_get_item_label (GHANDLE hivi);
147 
154 MG_EXPORT DWORD iconview_get_item_adddata (GHANDLE hivi);
155 
156 MG_EXPORT GHANDLE iconview_get_item(HWND hwnd, int index);
157 
158 MG_EXPORT BOOL iconview_set_item_lable(GHANDLE hivi, const char* strLable);
159 
160 MG_EXPORT PBITMAP iconview_set_item_bitmap(GHANDLE hivi, PBITMAP pbmp);
161 
162 
168 /* reserved */
174 #define IVS_NOTIFY SVS_NOTIFY
175 
181 #define IVS_UPNOTIFY SVS_UPNOTIFY
182 
188 #define IVS_AUTOSORT SVS_AUTOSORT
189 
195 #define IVS_LOOP SVS_LOOP
196 
197 
222 #define IVM_ADDITEM 0xF300
223 
245 #define IVM_SETITEMSIZE 0xF436
246 
247 
252 #define IVM_RESETCONTENT SVM_RESETCONTENT
253 
257 #define IVM_DELITEM SVM_DELITEM
258 
262 #define IVM_SETITEMDRAW SVM_SETITEMDRAW
263 
267 #define IVM_SETCONTWIDTH SVM_SETCONTWIDTH
268 
272 #define IVM_SETCONTHEIGHT SVM_SETCONTHEIGHT
273 
277 #define IVM_SETITEMOPS SVM_SETITEMOPS
278 
282 #define IVM_GETMARGINS SVM_GETMARGINS
283 
287 #define IVM_SETMARGINS SVM_SETMARGINS
288 
292 #define IVM_GETLEFTMARGIN SVM_GETLEFTMARGIN
293 
297 #define IVM_GETTOPMARGIN SVM_GETTOPMARGIN
298 
302 #define IVM_GETRIGHTMARGIN SVM_GETRIGHTMARGIN
303 
307 #define IVM_GETBOTTOMMARGIN SVM_GETBOTTOMMARGIN
308 
312 #define IVM_GETVISIBLEWIDTH SVM_GETVISIBLEWIDTH
313 
317 #define IVM_GETVISIBLEHEIGHT SVM_GETVISIBLEHEIGHT
318 
322 #define IVM_GETCONTWIDTH SVM_GETCONTWIDTH
323 
327 #define IVM_GETCONTHEIGHT SVM_GETCONTHEIGHT
328 
332 #define IVM_SETCONTRANGE SVM_SETCONTRANGE
333 
337 #define IVM_GETCONTENTX SVM_GETCONTENTX
338 
342 #define IVM_GETCONTENTY SVM_GETCONTENTY
343 
347 #define IVM_SETCONTPOS SVM_SETCONTPOS
348 
352 #define IVM_GETCURSEL SVM_GETCURSEL
353 
357 #define IVM_SELECTITEM SVM_SELECTITEM
358 
362 #define IVM_SHOWITEM SVM_SHOWITEM
363 
367 #define IVM_CHOOSEITEM SVM_CHOOSEITEM
368 
372 #define IVM_SETCURSEL SVM_SETCURSEL
373 
377 #define IVM_SETITEMINIT SVM_SETITEMINIT
378 
382 #define IVM_SETITEMDESTROY SVM_SETITEMDESTROY
383 
387 #define IVM_SETITEMCMP SVM_SETITEMCMP
388 
392 #define IVM_MAKEPOSVISIBLE SVM_MAKEPOSVISIBLE
393 
397 #define IVM_GETHSCROLLVAL SVM_GETHSCROLLVAL
398 
402 #define IVM_GETVSCROLLVAL SVM_GETVSCROLLVAL
403 
407 #define IVM_GETHSCROLLPAGEVAL SVM_GETHSCROLLPAGEVAL
408 
412 #define IVM_GETVSCROLLPAGEVAL SVM_GETVSCROLLPAGEVAL
413 
417 #define IVM_SETSCROLLVAL SVM_SETSCROLLVAL
418 
422 #define IVM_SETSCROLLPAGEVAL SVM_SETSCROLLPAGEVAL
423 
427 #define IVM_SORTITEMS SVM_SORTITEMS
428 
432 #define IVM_GETITEMCOUNT SVM_GETITEMCOUNT
433 
437 #define IVM_GETITEMADDDATA SVM_GETITEMADDDATA
438 
442 #define IVM_SETITEMADDDATA SVM_SETITEMADDDATA
443 
447 #define IVM_REFRESHITEM SVM_REFRESHITEM
448 
452 #define IVM_GETFIRSTVISIBLEITEM SVM_GETFIRSTVISIBLEITEM
453 
465 #define IVN_CLICKED SVN_CLICKED
466 
471 #define IVN_SELCHANGED SVN_SELCHANGED
472 
473 
480 #ifdef __cplusplus
481 }
482 #endif
483 
484 #endif /* EXT_ICONVIEW_H */
485 
int BOOL
A type definition for boolean value.
Definition: common.h:294
const char * label
Definition: iconview.h:105
MG_EXPORT int iconview_is_item_hilight(HWND hWnd, GHANDLE hivi)
Uses this to get an iconview item is hilighted or not.
MG_EXPORT DWORD iconview_get_item_adddata(GHANDLE hivi)
Uses this to get additional data from an iconview item.
struct _IVITEMINFO IVITEMINFO
GHANDLE HWND
Handle to main window or control.
Definition: common.h:358
DWORD dwFlags
Definition: iconview.h:113
PBITMAP bmp
Definition: iconview.h:100
PVOID GHANDLE
General handle.
Definition: common.h:353
MG_EXPORT PBITMAP iconview_get_item_bitmap(GHANDLE hivi)
Uses this to get bitmap handle from an iconview item.
DWORD addData
Definition: iconview.h:108
DWORD_PTR DWORD
A unsigned long type definition for pointer precision.
Definition: common.h:555
Definition: gdi.h:7382
MG_EXPORT const char * iconview_get_item_label(GHANDLE hivi)
Uses this to get text label from an iconview item.
GHANDLE HIVITEM
Icon view item handle.
Definition: iconview.h:84
int nItem
Definition: iconview.h:95