Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/tests/syslink.c:
} defwndproc_counter++;
- ret = DefWindowProcW(hwnd, message, wParam, lParam);
- switch(message)
You only need to record nml->item.iLink so you don't really need to process the message. So you can move this switch statement before defwndproc_counter++ and let the DefWindowProcW() handle it. Basically, add a switch statement, record nml->item.iLink from WM_NOTIFY, and break on other messages.