Fixed some commctl header issues reported in newsgroup.

This commit is contained in:
Marcus Meissner 2000-09-26 00:37:11 +00:00 committed by Alexandre Julliard
parent 56b9fea89a
commit 0691d74027
1 changed files with 8 additions and 2 deletions

View File

@ -2126,10 +2126,10 @@ typedef struct tagNMTVGETINFOTIPW
#define TreeView_InsertItemA(hwnd, phdi) \ #define TreeView_InsertItemA(hwnd, phdi) \
(INT)SendMessageA((hwnd), TVM_INSERTITEMA, 0, \ (HTREEITEM)SendMessageA((hwnd), TVM_INSERTITEMA, 0, \
(LPARAM)(LPTVINSERTSTRUCTA)(phdi)) (LPARAM)(LPTVINSERTSTRUCTA)(phdi))
#define TreeView_InsertItemW(hwnd,phdi) \ #define TreeView_InsertItemW(hwnd,phdi) \
(INT)SendMessageW((hwnd), TVM_INSERTITEMW, 0, \ (HTREEITEM)SendMessageW((hwnd), TVM_INSERTITEMW, 0, \
(LPARAM)(LPTVINSERTSTRUCTW)(phdi)) (LPARAM)(LPTVINSERTSTRUCTW)(phdi))
#define TreeView_InsertItem WINELIB_NAME_AW(TreeView_InsertItem) #define TreeView_InsertItem WINELIB_NAME_AW(TreeView_InsertItem)
@ -2212,6 +2212,7 @@ typedef struct tagNMTVGETINFOTIPW
(BOOL)SendMessageA((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem)) (BOOL)SendMessageA((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem))
#define TreeView_SetItemW(hwnd, pitem) \ #define TreeView_SetItemW(hwnd, pitem) \
(BOOL)SendMessageW((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem)) (BOOL)SendMessageW((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem))
#define TreeView_SetItem WINELIB_NAME_AW(TreeView_SetItem)
#define TreeView_EditLabel(hwnd, hitem) \ #define TreeView_EditLabel(hwnd, hitem) \
(HWND)SendMessageA((hwnd), TVM_EDITLABEL, 0, (LPARAM)(HTREEITEM)(hitem)) (HWND)SendMessageA((hwnd), TVM_EDITLABEL, 0, (LPARAM)(HTREEITEM)(hitem))
@ -2309,6 +2310,11 @@ typedef struct tagNMTVGETINFOTIPW
SendMessageA((hwndTV), TVM_SETITEM, 0, (LPARAM)(TV_ITEM *)&_TVi); \ SendMessageA((hwndTV), TVM_SETITEM, 0, (LPARAM)(TV_ITEM *)&_TVi); \
} }
typedef struct {
NMHDR hdr;
WORD wVKey;
UINT flags;
} TV_KEYDOWN;