Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/treeview.c:
!(item->state & TVIS_EXPANDEDONCE)); if (sendsNotifications) {
- if (!TREEVIEW_SendExpanding(infoPtr, item, TVE_EXPAND))
- {
TRACE(" TVN_ITEMEXPANDING returned TRUE, exiting...\n");
return FALSE;
- }
if (!TREEVIEW_SendExpanding(infoPtr, item, TVE_EXPAND))
Let's change TREEVIEW_SendExpanding to return the return value from TREEVIEW_SendTreeviewNotify() so we don't to need negate the return value twice and it's more intuitive this way.