reactos/sdk/include/wine/commctrl.h
Carl J. Bialorucki c9842e5aad
Move /sdk/include/reactos/wine to /sdk/include/wine, reorder global includes, remove unneeded includes (#8258)
- Move sdk\include\reactos\wine to sdk\include\wine
- Reorder the directories in include_directories() to be closer to alphabetical. This should make it easier to determine what global include directories can be removed in the future.
2025-07-29 13:57:12 -06:00

97 lines
2.6 KiB
C

#ifndef _INC_COMMCTRL_WINE
#define _INC_COMMCTRL_WINE
#define DPA_GetPtr DPA_GetPtr_wine_hack
#define FlatSB_SetScrollProp FlatSB_SetScrollProp_wine_hack
#include <psdk/commctrl.h>
#ifdef __cplusplus
extern "C" {
#endif
#undef DPA_GetPtr
LPVOID WINAPI DPA_GetPtr(HDPA, INT);
#undef FlatSB_SetScrollProp
BOOL WINAPI FlatSB_SetScrollProp(HWND, UINT, INT, BOOL);
#define DRAGLISTMSGSTRINGA "commctrl_DragListMsg"
#if defined(__GNUC__)
# define DRAGLISTMSGSTRINGW (const WCHAR []){ 'c','o','m','m','c','t','r','l', \
'_','D','r','a','g','L','i','s','t','M','s','g',0 }
#elif defined(_MSC_VER)
# define DRAGLISTMSGSTRINGW L"commctrl_DragListMsg"
#else
static const WCHAR DRAGLISTMSGSTRINGW[] = { 'c','o','m','m','c','t','r','l',
'_','D','r','a','g','L','i','s','t','M','s','g',0 };
#endif
#define ListView_InsertItemA(hwnd,pitem) \
(INT)SNDMSGA((hwnd),LVM_INSERTITEMA,0,(LPARAM)(const LVITEMA *)(pitem))
#define ListView_InsertItemW(hwnd,pitem) \
(INT)SNDMSGW((hwnd),LVM_INSERTITEMW,0,(LPARAM)(const LVITEMW *)(pitem))
#ifdef __cplusplus
#define SNDMSGA ::SendMessageA
#define SNDMSGW ::SendMessageW
#else
#define SNDMSGA SendMessageA
#define SNDMSGW SendMessageW
#endif
#define FLATSB_CLASSA "flatsb_class32"
#if defined(__GNUC__)
# define FLATSB_CLASSW (const WCHAR []){ 'f','l','a','t','s','b','_', \
'c','l','a','s','s','3','2',0 }
#elif defined(_MSC_VER)
# define FLATSB_CLASSW L"flatsb_class32"
#else
static const WCHAR FLATSB_CLASSW[] = { 'f','l','a','t','s','b','_',
'c','l','a','s','s','3','2',0 };
#endif
typedef TBSAVEPARAMSW *LPTBSAVEPARAMSW;
typedef LVFINDINFOA *LPLVFINDINFOA;
typedef LVFINDINFOW *LPLVFINDINFOW;
#define SB_SETBORDERS (WM_USER+5)
/* these are undocumented and the names are guesses */
typedef struct
{
NMHDR hdr;
HWND hwndDialog;
} NMTBINITCUSTOMIZE;
typedef struct
{
NMHDR hdr;
INT idNew;
INT iDirection; /* left is -1, right is 1 */
DWORD dwReason; /* HICF_* */
} NMTBWRAPHOTITEM;
#define LPNMLVDISPINFO WINELIB_NAME_AW(LPNMLVDISPINFO)
/* undocumented messages in Toolbar */
#define TB_UNKWN45D (WM_USER+93)
#define TB_UNKWN464 (WM_USER+100)
#define TreeView_GetItemA(hwnd, pitem) \
(BOOL)SNDMSGA((hwnd), TVM_GETITEMA, 0, (LPARAM) (TVITEMA *)(pitem))
#define TreeView_InsertItemA(hwnd, phdi) \
(HTREEITEM)SNDMSGA((hwnd), TVM_INSERTITEMA, 0, \
(LPARAM)(LPTVINSERTSTRUCTA)(phdi))
#define TreeView_SetItemA(hwnd, pitem) \
(BOOL)SNDMSGA((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem))
#ifdef __cplusplus
}
#endif
#endif /* _INC_COMMCTRL_WINE */