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 » CExtTreeGridWnd visibility of row from HTREEITEM Collapse All
Subject Author Date
Offer Har Oct 15, 2008 - 7:01 PM

Dear Support,


I need to know if an item in a tree (a row) is visible or not. I see that the function ItemGetVisibleIndexOf can tell me if an item is collapsed or not, but I also need to know if it is within the visible part of the grid - if I have 200 rows, and only 20 are visible, I would to do some periodic checks vs the database only on these 20 items, and leave the other 180 rows to time when they are visible.


Thanks,


Ron.


 

Technical Support Oct 17, 2008 - 8:51 AM

This is provided by the CExtTreeGridWnd::ItemCopyMove() method. It can either move tree brunches or clone them. There is also another CExtTreeGridWnd::ItemCopyMoveTest() method, which allows you to determine whether you can move a tree item or not. It’s not possible to change the parent item of a tree item to its child item.

Technical Support Oct 16, 2008 - 2:15 PM

The CExtTreeGridWnd::ItemGetVisibleIndexOf() method returns a zero-based index of tree item in the entire available scrollable range of grid rows. The CExtScrollItemWnd::OnSiwGetVisibleRange() method returns ranges of visible columns and rows. The returned CRect::top and CRect::bottom values specify zero-based row indices of the first and last visible grid rows.

Offer Har Oct 16, 2008 - 4:22 PM

Great - thanks...


Any way of moving a sub-tree....? my other question of that day?