https://bugs.winehq.org/show_bug.cgi?id=56431 --- Comment #26 from Wagner.a18(a)yahoo.com --- Phew the problem is more complex than I thought. The solution could not be to delete TREEVIEW_SendExpanded(), because it is needed to update the treeview itself... (I think the method name is a little bit confusing here... :/) TREEVIEW_SendTreeviewNotify() is called within TREEVIEW_SendExpanded() and it seems there is a timing problem... but I have no clue why :/ Within TREEVIEW_SendTreviewNotify() this method is called, and after that the children variable is set to 0! if (newItem) TREEVIEW_TVItemFromItem(infoPtr, mask, &nmhdr.itemNew, newItem); If I surrend this call with Trace messages the issue do not happen... (timing!?) if (newItem) TRACE("Before TREEVIEW_TVItemFromItem: cChildren=%d\n", newItem->cChildren); TREEVIEW_TVItemFromItem(infoPtr, mask, &nmhdr.itemNew, newItem); TRACE("After TREEVIEW_TVItemFromItem: cSChildren=%d\n", nmhdr.itemNew.cChildren); I think I have to look into it in more detail. Maybe I should try to setup an debugger to be able to set breakpoints. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.