Print Page | Close Window

CXTTreeCtrl extra text per item

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2071
Printed Date: 05 May 2024 at 4:56am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTTreeCtrl extra text per item
Posted By: walgar
Subject: CXTTreeCtrl extra text per item
Date Posted: 04 April 2005 at 8:10pm

Hi,

Is there an easy way to add extra text per item in a CXTTreeCtrl?

Something like, for instance in Outlook, the number of new mails in a folder is indicated at the end of a folder name item in the folder tree view.

Thanks in advance...

 




Replies:
Posted By: Oleg
Date Posted: 06 April 2005 at 3:57am

you can only change text like

m_wndTree.SetItemText(hItem, oldText + "(203 mail)");



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: walgar
Date Posted: 06 April 2005 at 8:58am

 

Yes, that is the easy way.

However, the selection rectangle will go over this extra text also, which is not like in Outlook.

Also, the font color cannot be changed for this extra text, again, like in Outlook.

 

Is the only solution to do a full blown ownerdraw tree control?

 

Thanks!

 

Originally posted by oleg oleg wrote:

you can only change text like

m_wndTree.SetItemText(hItem, oldText + "(203 mail)");



Posted By: Oleg
Date Posted: 06 April 2005 at 10:23am

Seems only ownerdraw. There are no stanadrd methods.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net