Changed the win31 style file dialog to 32 bits structures and
[wine] / include / listview.h
1 /*
2  * Listview class extra info
3  *
4  * Copyright 1998 Eric Kohl
5  */
6
7 #ifndef __WINE_LISTVIEW_H
8 #define __WINE_LISTVIEW_H
9
10 #include "commctrl.h"
11 #include "windef.h"
12 #include "wingdi.h"
13
14 /* Some definitions for inline edit control */    
15 typedef BOOL (*EditlblCallback)(HWND, LPSTR, DWORD);
16
17 typedef struct tagEDITLABEL_ITEM
18 {
19     WNDPROC EditWndProc;
20     DWORD param;
21     EditlblCallback EditLblCb;
22 } EDITLABEL_ITEM;
23
24 typedef struct tagLISTVIEW_SUBITEM
25 {
26     LPSTR pszText;
27     INT iImage;
28     INT iSubItem;
29
30 } LISTVIEW_SUBITEM;
31
32 typedef struct tagLISTVIEW_ITEM
33 {
34   UINT state;
35   LPSTR pszText;
36   INT iImage;
37   LPARAM lParam;
38   INT iIndent;
39   POINT ptPosition;
40
41 } LISTVIEW_ITEM;
42
43
44 typedef struct tagLISTVIEW_INFO
45 {
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     INT nEditLabelItem;
75     EDITLABEL_ITEM *pedititem;
76     DWORD dwHoverTime;
77
78     WPARAM charCode; /* Added */
79     CHAR szSearchParam[ MAX_PATH ]; /* Added */
80     DWORD timeSinceLastKeyPress; /* Added */
81     INT nSearchParamLength; /* Added */
82
83
84 } LISTVIEW_INFO;
85
86
87 extern VOID LISTVIEW_Register (VOID);
88 extern VOID LISTVIEW_Unregister (VOID);
89
90 #endif  /* __WINE_LISTVIEW_H */