Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - BUG CXTPTreeBase::GetLastItem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG CXTPTreeBase::GetLastItem

 Post Reply Post Reply
Author
Message
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Topic: BUG CXTPTreeBase::GetLastItem
    Posted: 30 October 2011 at 1:20pm
In
HTREEITEM CXTPTreeBase::GetLastItem(HTREEITEM hItem) const

The following statement produces an infinite loop when hItem has no children:

    while (m_pTreeCtrl->ItemHasChildren(hItem) != NULL)
    {
        // Find the last child of hItem
        htiNext = m_pTreeCtrl->GetChildItem(hItem);
        while (htiNext != NULL)
        {
            hItem = htiNext;
            htiNext = m_pTreeCtrl->GetNextSiblingItem(htiNext);
        }
    }

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.