Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTTreeBase and Markup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTTreeBase and Markup

 Post Reply Post Reply
Author
Message
zitz View Drop Down
Senior Member
Senior Member


Joined: 05 October 2008
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote zitz Quote  Post ReplyReply Direct Link To This Post Topic: CXTTreeBase and Markup
    Posted: 19 February 2009 at 7:11am
I use CXTTreeCtrl, and want Markup in CXTTreeCtrl...
Please add Markup to CXTTreeBase. In your sample using CTreeCtrl :(
void SetItemTextMarkup( hItem, srtMarkupText ) - if i set NULL remove Markup.
CString GetItemTextMarkup( hItem ) - NULL or _T("") if  Markup not using.
HTREEITEM InsertItemMarkup( LPCTSTR strMarkupTextItem, int nImage, int nSelectedImage, HTREEITEM hParent = TVI_ROOT, HTREEITEM hInsertAfter = TVI_LAST );
When i add strMarkupTextItem text part of it must add to item text for using function GetItemText.
And add DWORD and Markup fields to struct CLRFONT (rename to ITEMSTATE?), to store item data.
When draw check - if ( item have Markup string? ) drawMarkup else drawDefault;
Back to Top
zitz View Drop Down
Senior Member
Senior Member


Joined: 05 October 2008
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote zitz Quote  Post ReplyReply Direct Link To This Post Posted: 19 February 2009 at 7:13am
How do you like the idea?
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: 19 February 2009 at 12:01pm
Hi,
I think you can easy adopt this sample to such idea :)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
zitz View Drop Down
Senior Member
Senior Member


Joined: 05 October 2008
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote zitz Quote  Post ReplyReply Direct Link To This Post Posted: 19 February 2009 at 12:29pm
The problem is that I already use everywhere CXTTreeCtrl and CXTTreeView (not CTreeCtrl) in my projects.
And i must copy all functional of CXTTreeCtrl for that... :( (for example need multiselect feature)

It is clear that if you do not add it, I will do it myself ;)
It is just feature request.
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.031 seconds.