Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTTreeCtrl extra text per item
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTTreeCtrl extra text per item

 Post Reply Post Reply
Author
Message
walgar View Drop Down
Newbie
Newbie


Joined: 13 February 2005
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote walgar Quote  Post ReplyReply Direct Link To This Post Topic: CXTTreeCtrl extra text per item
    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...

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
walgar View Drop Down
Newbie
Newbie


Joined: 13 February 2005
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote walgar Quote  Post ReplyReply Direct Link To This Post 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)");

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 April 2005 at 10:23am

Seems only ownerdraw. There are no stanadrd methods.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.