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 » How to use a different font in CExtTreeCtrl Collapse All
Subject Author Date
Robert Hofstetter Sep 20, 2010 - 5:48 PM

I override the virtual function CExtTreeCtrl::OnQueryItemFont() and provide a larger font. The tree items are drawn with the font however the item sizes do not increase accordingly. so the tree item texts are partially cut off. Could you let me know the correct way to use different font in CExtTreeCtrl. Thanks

Technical Support Sep 30, 2010 - 1:15 PM

We are sorry for misunderstanding you. You can return different fonts for tree rows. But you should provide them with equal height fonts. The variable height rows are not supported in the CExtTreeCtrl control due to implementation limitations of the Win32 tree view common control.
If you need variable height rows, multiple columns, header columns and rows, over than 40 specialized data format inputs in your tree control, printing/previewing and much more, then please switch using the CExtTreeCtrl tree grid control.

Robert Hofstetter Sep 29, 2010 - 11:08 PM

I am afraid that this is not right answer.  I am talking about CExtTreeCtrl, not Grid control. Please read my original post again!

Technical Support Sep 21, 2010 - 9:58 AM

The CExtGridBaseWnd::DefaultRowHeightSet() method allows you to specify the default row height in the grid control.