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 » First Line by CExtTreeCtrl Collapse All
Subject Author Date
Lars Mohr May 11, 2009 - 1:32 AM

Hallo Support-Team!


Is there a way to remove the first line like it is in visual studio class view.? I think it is also in the standard control class CTreeCtrl, but I am not sure.




Regards

Technical Support May 11, 2009 - 11:45 AM

At present, this task requires overriding visrtual methods of the CExtTreeGridWnd class. CExtTreeGridWnd::OnTreeGridQueryColumnOutline() determines which column should display a tree outline. It’s possible to display a tree outline in more than one column or hide it at all. CExtTreeGridWnd::OnGbwAdjustRects() reserves some space for tree outline. Finally CExtTreeGridWnd::OnGbwPaintCell() draws a tree outline and this is the method you need to implement if you want to change outline lines.

Lars Mohr May 12, 2009 - 2:57 AM

I didn’t understand the relationship between CExtTreeCtrl and CExtTreeGridWnd.


I have had a look into a the funktion CExtTreeCtrl::OnPaintTreeItemLines and it seems that I have overriding this funktion. Is this right?

Technical Support May 12, 2009 - 1:33 PM

We are sorry but there is no relationship between the CExtTreeGridWnd and CExtTreeCtrl classes. But the CExtTreeCtrl control is also completely custom painting and it’s also possible to repaint its outline. You should override the CExtTreeCtrl::OnPaintTreeItemLines() method for that.