Abey George (of Macadamian/Corel)
[wine/multimedia.git] / include / listview.h
blob4797caf8ed6aac7424c8990e33cfe8c45f664062
1 /*
2 * Listview class extra info
4 * Copyright 1998 Eric Kohl
5 */
7 #ifndef __WINE_LISTVIEW_H
8 #define __WINE_LISTVIEW_H
10 #include "commctrl.h"
11 #include "windef.h"
12 #include "wingdi.h"
14 /* Some definitions for inline edit control */
15 typedef BOOL (*EditlblCallback)(HWND, LPSTR, DWORD);
17 typedef struct tagEDITLABEL_ITEM
19 WNDPROC EditWndProc;
20 DWORD param;
21 EditlblCallback EditLblCb;
22 } EDITLABEL_ITEM;
24 typedef struct tagLISTVIEW_SUBITEM
26 LPSTR pszText;
27 INT iImage;
28 INT iSubItem;
30 } LISTVIEW_SUBITEM;
32 typedef struct tagLISTVIEW_ITEM
34 UINT state;
35 LPSTR pszText;
36 INT iImage;
37 LPARAM lParam;
38 INT iIndent;
39 POINT ptPosition;
41 } LISTVIEW_ITEM;
44 typedef struct tagLISTVIEW_INFO
46 COLORREF clrBk;
47 COLORREF clrText;
48 COLORREF clrTextBk;
49 HIMAGELIST himlNormal;
50 HIMAGELIST himlSmall;
51 HIMAGELIST himlState;
52 BOOL bLButtonDown;
53 BOOL bRButtonDown;
54 INT nFocusedItem;
55 INT nItemHeight;
56 INT nItemWidth;
57 INT nSelectionMark;
58 INT nHotItem;
59 SHORT notifyFormat;
60 RECT rcList;
61 RECT rcView;
62 SIZE iconSize;
63 SIZE iconSpacing;
64 UINT uCallbackMask;
65 HWND hwndHeader;
66 HFONT hDefaultFont;
67 HFONT hFont;
68 BOOL bFocus;
69 DWORD dwExStyle; /* extended listview style */
70 HDPA hdpaItems;
71 PFNLVCOMPARE pfnCompare;
72 LPARAM lParamSort;
73 HWND hwndEdit;
74 BOOL bDoEditLabel;
75 EDITLABEL_ITEM *pedititem;
76 DWORD dwHoverTime;
77 } LISTVIEW_INFO;
80 extern VOID LISTVIEW_Register (VOID);
81 extern VOID LISTVIEW_Unregister (VOID);
83 #endif /* __WINE_LISTVIEW_H */