ReactOS  0.4.14-dev-41-g31d7680
commctrl.h
Go to the documentation of this file.
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 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 #undef DPA_GetPtr
21 
22 #undef FlatSB_SetScrollProp
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 ListView_InsertItemA(hwnd,pitem) \
37  (INT)SNDMSGA((hwnd),LVM_INSERTITEMA,0,(LPARAM)(const LVITEMA *)(pitem))
38 #define ListView_InsertItemW(hwnd,pitem) \
39  (INT)SNDMSGW((hwnd),LVM_INSERTITEMW,0,(LPARAM)(const LVITEMW *)(pitem))
40 
41 #ifdef __cplusplus
42 #define SNDMSGA ::SendMessageA
43 #define SNDMSGW ::SendMessageW
44 #else
45 #define SNDMSGA SendMessageA
46 #define SNDMSGW SendMessageW
47 #endif
48 
49 #define FLATSB_CLASSA "flatsb_class32"
50 #if defined(__GNUC__)
51 # define FLATSB_CLASSW (const WCHAR []){ 'f','l','a','t','s','b','_', \
52  'c','l','a','s','s','3','2',0 }
53 #elif defined(_MSC_VER)
54 # define FLATSB_CLASSW L"flatsb_class32"
55 #else
56 static const WCHAR FLATSB_CLASSW[] = { 'f','l','a','t','s','b','_',
57  'c','l','a','s','s','3','2',0 };
58 #endif
59 
61 
64 
65 #define SB_SETBORDERS (WM_USER+5)
66 
67 /* these are undocumented and the names are guesses */
68 typedef struct
69 {
73 
74 typedef struct
75 {
78  INT iDirection; /* left is -1, right is 1 */
79  DWORD dwReason; /* HICF_* */
81 
82 #define LPNMLVDISPINFO WINELIB_NAME_AW(LPNMLVDISPINFO)
83 
84 /* undocumented messages in Toolbar */
85 #define TB_UNKWN45D (WM_USER+93)
86 #define TB_UNKWN464 (WM_USER+100)
87 
88 #define TreeView_GetItemA(hwnd, pitem) \
89  (BOOL)SNDMSGA((hwnd), TVM_GETITEMA, 0, (LPARAM) (TVITEMA *)(pitem))
90 
91 #define TreeView_InsertItemA(hwnd, phdi) \
92  (HTREEITEM)SNDMSGA((hwnd), TVM_INSERTITEMA, 0, \
93  (LPARAM)(LPTVINSERTSTRUCTA)(phdi))
94 
95 #define TreeView_SetItemA(hwnd, pitem) \
96  (BOOL)SNDMSGA((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem))
97 
98 #ifdef __cplusplus
99 }
100 #endif
101 
102 #endif /* _INC_COMMCTRL_WINE */
DWORD dwReason
Definition: commctrl.h:79
static const WCHAR DRAGLISTMSGSTRINGW[]
Definition: commctrl.h:32
int32_t INT
Definition: typedefs.h:56
unsigned int BOOL
Definition: ntddk_ex.h:94
#define FlatSB_SetScrollProp
Definition: commctrl.h:6
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define WINAPI
Definition: msvc.h:8
unsigned long DWORD
Definition: ntddk_ex.h:95
#define DPA_GetPtr
Definition: commctrl.h:5
unsigned int UINT
Definition: ndis.h:50
TBSAVEPARAMSW * LPTBSAVEPARAMSW
Definition: commctrl.h:60
static const WCHAR FLATSB_CLASSW[]
Definition: commctrl.h:56
LVFINDINFOA * LPLVFINDINFOA
Definition: commctrl.h:62
LVFINDINFOW * LPLVFINDINFOW
Definition: commctrl.h:63
Definition: dpa.c:48