iconview.h
Go to the documentation of this file.00001
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef EXT_ICONVIEW_H
00030 #define EXT_ICONVIEW_H
00031
00032
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036
00050 #define CTRL_ICONVIEW ("IconView")
00051
00053 #define IV_OKAY 0
00054
00055 #define IV_ERR (-1)
00056
00057 #define IV_ERRSPACE (-2)
00058
00063 typedef GHANDLE HIVITEM;
00064
00069 typedef struct _IVITEMINFO
00070 {
00074 int nItem;
00075
00079 PBITMAP bmp;
00080
00084 const char *label;
00085
00087 DWORD addData;
00088
00092 DWORD dwFlags;
00093
00094 } IVITEMINFO;
00095 typedef IVITEMINFO* PIVITEMINFO;
00096
00098 #define IVFLAG_BITMAP 0x0001
00099
00100 #define IVFLAG_ICON 0x0002
00101
00102
00109 MG_EXPORT int iconview_is_item_hilight (HWND hWnd, GHANDLE hivi);
00110
00117 MG_EXPORT PBITMAP iconview_get_item_bitmap (GHANDLE hivi);
00118
00125 MG_EXPORT const char* iconview_get_item_label (GHANDLE hivi);
00126
00133 MG_EXPORT DWORD iconview_get_item_adddata (GHANDLE hivi);
00134
00135 MG_EXPORT GHANDLE iconview_get_item(HWND hwnd, int index);
00136
00137 MG_EXPORT BOOL iconview_set_item_lable(GHANDLE hivi, const char* strLable);
00138
00139 MG_EXPORT PBITMAP iconview_set_item_bitmap(GHANDLE hivi, PBITMAP pbmp);
00140
00141
00147
00153 #define IVS_NOTIFY SVS_NOTIFY
00154
00160 #define IVS_UPNOTIFY SVS_UPNOTIFY
00161
00167 #define IVS_AUTOSORT SVS_AUTOSORT
00168
00174 #define IVS_LOOP SVS_LOOP
00175
00176
00201 #define IVM_ADDITEM 0xF300
00202
00224 #define IVM_SETITEMSIZE 0xF436
00225
00226
00231 #define IVM_RESETCONTENT SVM_RESETCONTENT
00232
00236 #define IVM_DELITEM SVM_DELITEM
00237
00241 #define IVM_SETITEMDRAW SVM_SETITEMDRAW
00242
00246 #define IVM_SETCONTWIDTH SVM_SETCONTWIDTH
00247
00251 #define IVM_SETCONTHEIGHT SVM_SETCONTHEIGHT
00252
00256 #define IVM_SETITEMOPS SVM_SETITEMOPS
00257
00261 #define IVM_GETMARGINS SVM_GETMARGINS
00262
00266 #define IVM_SETMARGINS SVM_SETMARGINS
00267
00271 #define IVM_GETLEFTMARGIN SVM_GETLEFTMARGIN
00272
00276 #define IVM_GETTOPMARGIN SVM_GETTOPMARGIN
00277
00281 #define IVM_GETRIGHTMARGIN SVM_GETRIGHTMARGIN
00282
00286 #define IVM_GETBOTTOMMARGIN SVM_GETBOTTOMMARGIN
00287
00291 #define IVM_GETVISIBLEWIDTH SVM_GETVISIBLEWIDTH
00292
00296 #define IVM_GETVISIBLEHEIGHT SVM_GETVISIBLEHEIGHT
00297
00301 #define IVM_GETCONTWIDTH SVM_GETCONTWIDTH
00302
00306 #define IVM_GETCONTHEIGHT SVM_GETCONTHEIGHT
00307
00311 #define IVM_SETCONTRANGE SVM_SETCONTRANGE
00312
00316 #define IVM_GETCONTENTX SVM_GETCONTENTX
00317
00321 #define IVM_GETCONTENTY SVM_GETCONTENTY
00322
00326 #define IVM_SETCONTPOS SVM_SETCONTPOS
00327
00331 #define IVM_GETCURSEL SVM_GETCURSEL
00332
00336 #define IVM_SELECTITEM SVM_SELECTITEM
00337
00341 #define IVM_SHOWITEM SVM_SHOWITEM
00342
00346 #define IVM_CHOOSEITEM SVM_CHOOSEITEM
00347
00351 #define IVM_SETCURSEL SVM_SETCURSEL
00352
00356 #define IVM_SETITEMINIT SVM_SETITEMINIT
00357
00361 #define IVM_SETITEMDESTROY SVM_SETITEMDESTROY
00362
00366 #define IVM_SETITEMCMP SVM_SETITEMCMP
00367
00371 #define IVM_MAKEPOSVISIBLE SVM_MAKEPOSVISIBLE
00372
00376 #define IVM_GETHSCROLLVAL SVM_GETHSCROLLVAL
00377
00381 #define IVM_GETVSCROLLVAL SVM_GETVSCROLLVAL
00382
00386 #define IVM_GETHSCROLLPAGEVAL SVM_GETHSCROLLPAGEVAL
00387
00391 #define IVM_GETVSCROLLPAGEVAL SVM_GETVSCROLLPAGEVAL
00392
00396 #define IVM_SETSCROLLVAL SVM_SETSCROLLVAL
00397
00401 #define IVM_SETSCROLLPAGEVAL SVM_SETSCROLLPAGEVAL
00402
00406 #define IVM_SORTITEMS SVM_SORTITEMS
00407
00411 #define IVM_GETITEMCOUNT SVM_GETITEMCOUNT
00412
00416 #define IVM_GETITEMADDDATA SVM_GETITEMADDDATA
00417
00421 #define IVM_SETITEMADDDATA SVM_SETITEMADDDATA
00422
00426 #define IVM_REFRESHITEM SVM_REFRESHITEM
00427
00431 #define IVM_GETFIRSTVISIBLEITEM SVM_GETFIRSTVISIBLEITEM
00432
00444 #define IVN_CLICKED SVN_CLICKED
00445
00450 #define IVN_SELCHANGED SVN_SELCHANGED
00451
00452
00459 #ifdef __cplusplus
00460 }
00461 #endif
00462
00463 #endif
00464