Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Is ther a way to iterate over all nodes in CExtTreeGridWnd without recursion? Collapse All
Subject Author Date
Offer Har Mar 9, 2009 - 4:12 PM

Dear Support,


When certain events happen in our application we need to go over all rows (visible and non-visible, which are collapsed nodes in tree grid) and update them.


Is there any way of iterating over all HTREEITEMs in the tree grid in one loop?


Thanks,


Ron.

Technical Support Mar 10, 2009 - 5:44 AM

The CExtTreeGridWnd class has the following methods for tree row enumeration:

   virtual HTREEITEM ItemGetNext(
                        HTREEITEM hTreeItem,
                        bool bSiblingOnly,
                        bool bExpandedWalk,
                        bool bIncludeHidden
                        ) const;
            virtual HTREEITEM ItemGetPrev(
                        HTREEITEM hTreeItem,
                        bool bSiblingOnly,
                        bool bExpandedWalk,
                        bool bIncludeHidden
                        ) const;
            virtual HTREEITEM ItemJumpNext(
                        HTREEITEM hTreeItem,
                        LONG nJump,
                        bool bSiblingOnly,
                        bool bExpandedWalk,
                        bool bIncludeHidden
                        ) const;
            virtual HTREEITEM ItemJumpPrev(
                        HTREEITEM hTreeItem,
                        LONG nJump,
                        bool bSiblingOnly,
                        bool bExpandedWalk,
                        bool bIncludeHidden
                        ) const;

The ItemJump***() methods invoked with the nJump parameter set to 1 do the same as the ItemGet***() methods.