[Bug 1699] TreeView sending message to wrong window