ReactOS  0.4.15-dev-506-ga3ec01c
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 #include <psdk/commctrl.h>
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 #undef DPA_GetPtr
16 
17 #undef FlatSB_SetScrollProp
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
27 static 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
51 static const WCHAR FLATSB_CLASSW[] = { 'f','l','a','t','s','b','_',
52  'c','l','a','s','s','3','2',0 };
53 #endif
54 
56 
59 
60 #define SB_SETBORDERS (WM_USER+5)
61 
62 /* these are undocumented and the names are guesses */
63 typedef struct
64 {
68 
69 typedef struct
70 {
73  INT iDirection; /* left is -1, right is 1 */
74  DWORD dwReason; /* HICF_* */
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 */
DWORD dwReason
Definition: commctrl.h:74
static const WCHAR DRAGLISTMSGSTRINGW[]
Definition: commctrl.h:27
int32_t INT
Definition: typedefs.h:57
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:6
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:55
static const WCHAR FLATSB_CLASSW[]
Definition: commctrl.h:51
LVFINDINFOA * LPLVFINDINFOA
Definition: commctrl.h:57
LVFINDINFOW * LPLVFINDINFOW
Definition: commctrl.h:58
Definition: dpa.c:48