From: Alistair Leslie-Hughes leslie_alistair@hotmail.com
--- include/commctrl.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)
diff --git a/include/commctrl.h b/include/commctrl.h index 7c5b09f6e72..bc31096a0da 100644 --- a/include/commctrl.h +++ b/include/commctrl.h @@ -3022,6 +3022,8 @@ typedef struct tagTVKEYDOWN #define TreeView_GetCheckState(hwndTV, hti) \ ((((UINT)(SNDMSG((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), \ TVIS_STATEIMAGEMASK))) >> 12) -1) +#define TreeView_SetCheckState(hwndTV, hti, check) \ + TreeView_SetItemState(hwndTV, hti, INDEXTOSTATEIMAGEMASK(check ? 2 : 1), TVIS_STATEIMAGEMASK)
#define TreeView_SetLineColor(hwnd, clr) \ (COLORREF)SNDMSG((hwnd), TVM_SETLINECOLOR, 0, (LPARAM)(clr)) @@ -3040,6 +3042,34 @@ typedef struct tagTVKEYDOWN #define TreeView_GetUnicodeFormat(hwnd) \ (BOOL)SNDMSG((hwnd), TVM_GETUNICODEFORMAT, 0, 0)
+#define TreeView_SetExtendedStyle(hwnd, style, mask) \ + (DWORD)SNDMSG((hwnd), TVM_SETEXTENDEDSTYLE, mask, style) + +#define TreeView_GetExtendedStyle(hwnd) \ + (DWORD)SNDMSG((hwnd), TVM_GETEXTENDEDSTYLE, 0, 0) + +#define TreeView_SetAutoScrollInfo(hwnd, pps, updatetime) \ + SNDMSG((hwnd), TVM_SETAUTOSCROLLINFO, (WPARAM)(pps), (LPARAM)(updatetime)) + +#define TreeView_SetHot(hwnd, hitem) \ + SNDMSG((hwnd), TVM_SETHOT, 0, (LPARAM)(hitem)) + +#define TreeView_GetSelectedCount(hwnd) \ + (DWORD)SNDMSG((hwnd), TVM_GETSELECTEDCOUNT, 0, 0) + +#define TreeView_ShowInfoTip(hwnd, hitem) \ + (DWORD)SNDMSG((hwnd), TVM_SHOWINFOTIP, 0, (LPARAM)(hitem)) + +#define TreeView_GetItemPartRect(hwnd, hitem, rect, part) \ +{ \ + TVGETITEMPARTRECTINFO info; \ + info.hti = (hitem); \ + info.prc = (rect); \ + info.partID = (part); \ + (BOOL)SNDMSG((hwnd), TVM_GETITEMPARTRECT, 0, (LPARAM)&info); \ +} + + /* Listview control */
#define WC_LISTVIEWA "SysListView32"
Hi,
It looks like your patch introduced the new failures shown below. Please investigate and fix them before resubmitting your patch. If they are not new, fixing them anyway would help a lot. Otherwise please ask for the known failures list to be updated.
The tests also ran into some preexisting test failures. If you know how to fix them that would be helpful. See the TestBot job for the details:
The full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=145972
Your paranoid android.
=== debian11b (64 bit WoW report) ===
user32: input.c:4067: Test succeeded inside todo block: button_down_hwnd_todo 1: got MSG_TEST_WIN hwnd 0000000003D200C6, msg WM_LBUTTONDOWN, wparam 0x1, lparam 0x320032