2 #ifndef _INC_COMMCTRL_WINE
3 #define _INC_COMMCTRL_WINE
5 #define DPA_GetPtr DPA_GetPtr_wine_hack
6 #define FlatSB_SetScrollProp FlatSB_SetScrollProp_wine_hack
8 #if (_WIN32_IE < 0x501)
10 #define _WIN32_IE 0x0501
13 #include <psdk/commctrl.h>
16 LPVOID WINAPI
DPA_GetPtr(HDPA
, INT
);
18 #undef FlatSB_SetScrollProp
19 BOOL WINAPI
FlatSB_SetScrollProp(HWND
, UINT
, INT
, BOOL
);
21 #define DRAGLISTMSGSTRINGA "commctrl_DragListMsg"
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"
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 };
32 #define FLATSB_CLASSA "flatsb_class32"
34 # define FLATSB_CLASSW (const WCHAR []){ 'f','l','a','t','s','b','_', \
35 'c','l','a','s','s','3','2',0 }
36 #elif defined(_MSC_VER)
37 # define FLATSB_CLASSW L"flatsb_class32"
39 static const WCHAR FLATSB_CLASSW
[] = { 'f','l','a','t','s','b','_',
40 'c','l','a','s','s','3','2',0 };
43 typedef TBSAVEPARAMSW
*LPTBSAVEPARAMSW
;
45 typedef LVFINDINFOA
*LPLVFINDINFOA
;
46 typedef LVFINDINFOW
*LPLVFINDINFOW
;
48 #define SB_SETBORDERS (WM_USER+5)
49 #define TBSTYLE_EX_UNDOC1 0x00000004 /* similar to TBSTYLE_WRAPABLE */
51 /* these are undocumented and the names are guesses */
62 INT iDirection
; /* left is -1, right is 1 */
63 DWORD dwReason
; /* HICF_* */
66 #define LPNMLVDISPINFO WINELIB_NAME_AW(LPNMLVDISPINFO)
68 /* undocumented messages in Toolbar */
69 #define TB_UNKWN45D (WM_USER+93)
70 #define TB_UNKWN464 (WM_USER+100)
72 #endif /* _INC_COMMCTRL_WINE */