Reactos
1
2#ifndef _INC_COMMCTRL_WINE
3#define _INC_COMMCTRL_WINE
4
5#define DPA_GetPtr DPA_GetPtr_wine_hack
6#define FlatSB_SetScrollProp FlatSB_SetScrollProp_wine_hack
7
8#include <psdk/commctrl.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#undef DPA_GetPtr
15LPVOID WINAPI DPA_GetPtr(HDPA, INT);
16
17#undef FlatSB_SetScrollProp
18BOOL WINAPI FlatSB_SetScrollProp(HWND, UINT, INT, BOOL);
19
20#define DRAGLISTMSGSTRINGA "commctrl_DragListMsg"
21#if defined(__GNUC__)
22# define DRAGLISTMSGSTRINGW (const WCHAR []){ 'c','o','m','m','c','t','r','l', \
23 '_','D','r','a','g','L','i','s','t','M','s','g',0 }
24#elif defined(_MSC_VER)
25# define DRAGLISTMSGSTRINGW L"commctrl_DragListMsg"
26#else
27static const WCHAR DRAGLISTMSGSTRINGW[] = { 'c','o','m','m','c','t','r','l',
28 '_','D','r','a','g','L','i','s','t','M','s','g',0 };
29#endif
30
31#define ListView_InsertItemA(hwnd,pitem) \
32 (INT)SNDMSGA((hwnd),LVM_INSERTITEMA,0,(LPARAM)(const LVITEMA *)(pitem))
33#define ListView_InsertItemW(hwnd,pitem) \
34 (INT)SNDMSGW((hwnd),LVM_INSERTITEMW,0,(LPARAM)(const LVITEMW *)(pitem))
35
36#ifdef __cplusplus
37#define SNDMSGA ::SendMessageA
38#define SNDMSGW ::SendMessageW
39#else
40#define SNDMSGA SendMessageA
41#define SNDMSGW SendMessageW
42#endif
43
44#define FLATSB_CLASSA "flatsb_class32"
45#if defined(__GNUC__)
46# define FLATSB_CLASSW (const WCHAR []){ 'f','l','a','t','s','b','_', \
47 'c','l','a','s','s','3','2',0 }
48#elif defined(_MSC_VER)
49# define FLATSB_CLASSW L"flatsb_class32"
50#else
51static const WCHAR FLATSB_CLASSW[] = { 'f','l','a','t','s','b','_',
52 'c','l','a','s','s','3','2',0 };
53#endif
54
55typedef TBSAVEPARAMSW *LPTBSAVEPARAMSW;
56
57typedef LVFINDINFOA *LPLVFINDINFOA;
58typedef LVFINDINFOW *LPLVFINDINFOW;
59
60#define SB_SETBORDERS (WM_USER+5)
61
62/* these are undocumented and the names are guesses */
63typedef struct
64{
65 NMHDR hdr;
66 HWND hwndDialog;
67} NMTBINITCUSTOMIZE;
68
69typedef struct
70{
71 NMHDR hdr;
72 INT idNew;
73 INT iDirection; /* left is -1, right is 1 */
74 DWORD dwReason; /* HICF_* */
75} NMTBWRAPHOTITEM;
76
77#define LPNMLVDISPINFO WINELIB_NAME_AW(LPNMLVDISPINFO)
78
79/* undocumented messages in Toolbar */
80#define TB_UNKWN45D (WM_USER+93)
81#define TB_UNKWN464 (WM_USER+100)
82
83#define TreeView_GetItemA(hwnd, pitem) \
84 (BOOL)SNDMSGA((hwnd), TVM_GETITEMA, 0, (LPARAM) (TVITEMA *)(pitem))
85
86#define TreeView_InsertItemA(hwnd, phdi) \
87 (HTREEITEM)SNDMSGA((hwnd), TVM_INSERTITEMA, 0, \
88 (LPARAM)(LPTVINSERTSTRUCTA)(phdi))
89
90#define TreeView_SetItemA(hwnd, pitem) \
91 (BOOL)SNDMSGA((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem))
92
93#ifdef __cplusplus
94}
95#endif
96
97#endif /* _INC_COMMCTRL_WINE */