[SHELL32_NEW]
[reactos.git] / include / reactos / wine / commctrl.h
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 #if (_WIN32_IE < 0x501)
9 #undef _WIN32_IE
10 #define _WIN32_IE 0x0501
11 #endif
12
13 #include_next <commctrl.h>
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 #undef DPA_GetPtr
20 LPVOID WINAPI DPA_GetPtr(HDPA, INT);
21
22 #undef FlatSB_SetScrollProp
23 BOOL WINAPI FlatSB_SetScrollProp(HWND, UINT, INT, BOOL);
24
25 #define DRAGLISTMSGSTRINGA "commctrl_DragListMsg"
26 #if defined(__GNUC__)
27 # define DRAGLISTMSGSTRINGW (const WCHAR []){ 'c','o','m','m','c','t','r','l', \
28 '_','D','r','a','g','L','i','s','t','M','s','g',0 }
29 #elif defined(_MSC_VER)
30 # define DRAGLISTMSGSTRINGW L"commctrl_DragListMsg"
31 #else
32 static const WCHAR DRAGLISTMSGSTRINGW[] = { 'c','o','m','m','c','t','r','l',
33 '_','D','r','a','g','L','i','s','t','M','s','g',0 };
34 #endif
35
36 #define FLATSB_CLASSA "flatsb_class32"
37 #if defined(__GNUC__)
38 # define FLATSB_CLASSW (const WCHAR []){ 'f','l','a','t','s','b','_', \
39 'c','l','a','s','s','3','2',0 }
40 #elif defined(_MSC_VER)
41 # define FLATSB_CLASSW L"flatsb_class32"
42 #else
43 static const WCHAR FLATSB_CLASSW[] = { 'f','l','a','t','s','b','_',
44 'c','l','a','s','s','3','2',0 };
45 #endif
46
47 typedef TBSAVEPARAMSW *LPTBSAVEPARAMSW;
48
49 typedef LVFINDINFOA *LPLVFINDINFOA;
50 typedef LVFINDINFOW *LPLVFINDINFOW;
51
52 #define SB_SETBORDERS (WM_USER+5)
53 #define TBSTYLE_EX_UNDOC1 0x00000004 /* similar to TBSTYLE_WRAPABLE */
54
55 /* these are undocumented and the names are guesses */
56 typedef struct
57 {
58 NMHDR hdr;
59 HWND hwndDialog;
60 } NMTBINITCUSTOMIZE;
61
62 typedef struct
63 {
64 NMHDR hdr;
65 INT idNew;
66 INT iDirection; /* left is -1, right is 1 */
67 DWORD dwReason; /* HICF_* */
68 } NMTBWRAPHOTITEM;
69
70 #define LPNMLVDISPINFO WINELIB_NAME_AW(LPNMLVDISPINFO)
71
72 /* undocumented messages in Toolbar */
73 #define TB_UNKWN45D (WM_USER+93)
74 #define TB_UNKWN464 (WM_USER+100)
75
76 #ifdef __cplusplus
77 }
78 #endif
79
80 #endif /* _INC_COMMCTRL_WINE */