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