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.
Subject |
Author |
Date |
|
David Skok
|
Nov 27, 2007 - 3:03 PM
|
given an HTREEITEM and a column. How can I do it?
There isn’t an equivalent to CExtGridWnd::GridCellRectsGet in CExtTreeGridWnd that accepts HTREEITEM rather than row.
I need it to invalidate a progress cell rect for repainting in a tree.
Thanks, Dave
|
|
Technical Support
|
Nov 28, 2007 - 4:17 AM
|
You should use CExtGridWnd::GridCellRectsGet() for all grid windows (CExtGridWnd , CExtTreeGridWnd and CExtReportGridWnd ). You can convert a HTREEITEM handle into a plain zero-based row index by using CExtTreeGridWnd::ItemGetByVisibleRowIndex() . Please note this method returns a negative value if it failed to compute a row index in a tree row (one of row’s parent items is collapsed).
|
|
Suhai Gyorgy
|
Nov 28, 2007 - 1:29 AM
|
You should use LONG CExtTreeGridWnd::ItemGetVisibleIndexOf( HTREEITEM hTreeItem) const; method to get the row index from HTREEITEM. If the item is not visible ( its parent is not expanded ), the return value will be -1, otherwise you can use the return value in CExtGridWnd::GridCellRectsGet method.
|
|