Commit 1d658d4b authored by David Hedberg's avatar David Hedberg Committed by Alexandre Julliard

shell32/tests: Try harder to subclass the listview.

parent 8d9fbe59
......@@ -78,6 +78,16 @@ static HWND subclass_listview(HWND hwnd)
/* listview is a first child */
listview = FindWindowExA(hwnd, NULL, WC_LISTVIEWA, NULL);
if(!listview)
{
/* .. except for some versions of Windows XP, where things
are slightly more complicated. */
HWND hwnd_tmp;
hwnd_tmp = FindWindowExA(hwnd, NULL, "DUIViewWndClassName", NULL);
hwnd_tmp = FindWindowExA(hwnd_tmp, NULL, "DirectUIHWND", NULL);
hwnd_tmp = FindWindowExA(hwnd_tmp, NULL, "CtrlNotifySink", NULL);
listview = FindWindowExA(hwnd_tmp, NULL, WC_LISTVIEWA, NULL);
}
oldproc = (WNDPROC)SetWindowLongPtrA(listview, GWLP_WNDPROC,
(LONG_PTR)listview_subclass_proc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment