MiniGUI API Reference (MiniGUI-Processes)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
iconview.h
Go to the documentation of this file.
1 //
3 // IMPORTANT NOTICE
4 //
5 // The following open source license statement does not apply to any
6 // entity in the Exception List published by FMSoft.
7 //
8 // For more information, please visit:
9 //
10 // https://www.fmsoft.cn/exception-list
11 //
13 
55 /*
56  * $Id: iconview.h 11576 2009-04-27 01:01:57Z dongjunjie $
57  *
58  * MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
59  * pSOS, ThreadX, NuCleus, OSE, and Win32.
60  */
61 
62 #ifndef EXT_ICONVIEW_H
63 #define EXT_ICONVIEW_H
64 
65 
66 #ifdef __cplusplus
67 extern "C" {
68 #endif
69 
83 #define CTRL_ICONVIEW ("IconView")
84 
86 #define IV_OKAY 0
87 
88 #define IV_ERR (-1)
89 
90 #define IV_ERRSPACE (-2)
91 
96 typedef GHANDLE HIVITEM;
97 
102 typedef struct _IVITEMINFO
103 {
107  int nItem;
108 
113 
117  const char *label;
118 
121 
126 
127 } IVITEMINFO;
128 typedef IVITEMINFO* PIVITEMINFO;
129 
131 #define IVFLAG_BITMAP 0x0001
132 
133 #define IVFLAG_ICON 0x0002
134 
135 
142 MG_EXPORT int iconview_is_item_hilight (HWND hWnd, GHANDLE hivi);
143 
150 MG_EXPORT PBITMAP iconview_get_item_bitmap (GHANDLE hivi);
151 
158 MG_EXPORT const char* iconview_get_item_label (GHANDLE hivi);
159 
166 MG_EXPORT DWORD iconview_get_item_adddata (GHANDLE hivi);
167 
168 MG_EXPORT GHANDLE iconview_get_item(HWND hwnd, int index);
169 
170 MG_EXPORT BOOL iconview_set_item_lable(GHANDLE hivi, const char* strLable);
171 
172 MG_EXPORT PBITMAP iconview_set_item_bitmap(GHANDLE hivi, PBITMAP pbmp);
173 
174 
180 /* reserved */
186 #define IVS_NOTIFY SVS_NOTIFY
187 
193 #define IVS_UPNOTIFY SVS_UPNOTIFY
194 
200 #define IVS_AUTOSORT SVS_AUTOSORT
201 
207 #define IVS_LOOP SVS_LOOP
208 
209 
234 #define IVM_ADDITEM 0xF300
235 
257 #define IVM_SETITEMSIZE 0xF436
258 
259 
264 #define IVM_RESETCONTENT SVM_RESETCONTENT
265 
269 #define IVM_DELITEM SVM_DELITEM
270 
274 #define IVM_SETITEMDRAW SVM_SETITEMDRAW
275 
279 #define IVM_SETCONTWIDTH SVM_SETCONTWIDTH
280 
284 #define IVM_SETCONTHEIGHT SVM_SETCONTHEIGHT
285 
289 #define IVM_SETITEMOPS SVM_SETITEMOPS
290 
294 #define IVM_GETMARGINS SVM_GETMARGINS
295 
299 #define IVM_SETMARGINS SVM_SETMARGINS
300 
304 #define IVM_GETLEFTMARGIN SVM_GETLEFTMARGIN
305 
309 #define IVM_GETTOPMARGIN SVM_GETTOPMARGIN
310 
314 #define IVM_GETRIGHTMARGIN SVM_GETRIGHTMARGIN
315 
319 #define IVM_GETBOTTOMMARGIN SVM_GETBOTTOMMARGIN
320 
324 #define IVM_GETVISIBLEWIDTH SVM_GETVISIBLEWIDTH
325 
329 #define IVM_GETVISIBLEHEIGHT SVM_GETVISIBLEHEIGHT
330 
334 #define IVM_GETCONTWIDTH SVM_GETCONTWIDTH
335 
339 #define IVM_GETCONTHEIGHT SVM_GETCONTHEIGHT
340 
344 #define IVM_SETCONTRANGE SVM_SETCONTRANGE
345 
349 #define IVM_GETCONTENTX SVM_GETCONTENTX
350 
354 #define IVM_GETCONTENTY SVM_GETCONTENTY
355 
359 #define IVM_SETCONTPOS SVM_SETCONTPOS
360 
364 #define IVM_GETCURSEL SVM_GETCURSEL
365 
369 #define IVM_SELECTITEM SVM_SELECTITEM
370 
374 #define IVM_SHOWITEM SVM_SHOWITEM
375 
379 #define IVM_CHOOSEITEM SVM_CHOOSEITEM
380 
384 #define IVM_SETCURSEL SVM_SETCURSEL
385 
389 #define IVM_SETITEMINIT SVM_SETITEMINIT
390 
394 #define IVM_SETITEMDESTROY SVM_SETITEMDESTROY
395 
399 #define IVM_SETITEMCMP SVM_SETITEMCMP
400 
404 #define IVM_MAKEPOSVISIBLE SVM_MAKEPOSVISIBLE
405 
409 #define IVM_GETHSCROLLVAL SVM_GETHSCROLLVAL
410 
414 #define IVM_GETVSCROLLVAL SVM_GETVSCROLLVAL
415 
419 #define IVM_GETHSCROLLPAGEVAL SVM_GETHSCROLLPAGEVAL
420 
424 #define IVM_GETVSCROLLPAGEVAL SVM_GETVSCROLLPAGEVAL
425 
429 #define IVM_SETSCROLLVAL SVM_SETSCROLLVAL
430 
434 #define IVM_SETSCROLLPAGEVAL SVM_SETSCROLLPAGEVAL
435 
439 #define IVM_SORTITEMS SVM_SORTITEMS
440 
444 #define IVM_GETITEMCOUNT SVM_GETITEMCOUNT
445 
449 #define IVM_GETITEMADDDATA SVM_GETITEMADDDATA
450 
454 #define IVM_SETITEMADDDATA SVM_SETITEMADDDATA
455 
459 #define IVM_REFRESHITEM SVM_REFRESHITEM
460 
464 #define IVM_GETFIRSTVISIBLEITEM SVM_GETFIRSTVISIBLEITEM
465 
477 #define IVN_CLICKED SVN_CLICKED
478 
483 #define IVN_SELCHANGED SVN_SELCHANGED
484 
485 
492 #ifdef __cplusplus
493 }
494 #endif
495 
496 #endif /* EXT_ICONVIEW_H */
497 
_IVITEMINFO::addData
DWORD addData
Definition: iconview.h:120
DWORD
DWORD_PTR DWORD
A unsigned long type definition for pointer precision.
Definition: common.h:604
HWND
GHANDLE HWND
Handle to main window or control.
Definition: common.h:407
GHANDLE
PVOID GHANDLE
General handle.
Definition: common.h:402
_IVITEMINFO::label
const char * label
Definition: iconview.h:117
_IVITEMINFO
Definition: iconview.h:102
_IVITEMINFO::dwFlags
DWORD dwFlags
Definition: iconview.h:125
IVITEMINFO
struct _IVITEMINFO IVITEMINFO
BOOL
int BOOL
A type definition for boolean value.
Definition: common.h:343
_IVITEMINFO::nItem
int nItem
Definition: iconview.h:107
iconview_get_item_adddata
MG_EXPORT DWORD iconview_get_item_adddata(GHANDLE hivi)
Uses this to get additional data from an iconview item.
HIVITEM
GHANDLE HIVITEM
Icon view item handle.
Definition: iconview.h:96
iconview_get_item_bitmap
MG_EXPORT PBITMAP iconview_get_item_bitmap(GHANDLE hivi)
Uses this to get bitmap handle from an iconview item.
iconview_is_item_hilight
MG_EXPORT int iconview_is_item_hilight(HWND hWnd, GHANDLE hivi)
Uses this to get an iconview item is hilighted or not.
iconview_get_item_label
const MG_EXPORT char * iconview_get_item_label(GHANDLE hivi)
Uses this to get text label from an iconview item.
_BITMAP
Definition: gdi.h:11088
_IVITEMINFO::bmp
PBITMAP bmp
Definition: iconview.h:112