Print Page | Close Window

CXTTreeBase and Markup

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=13450
Printed Date: 23 June 2025 at 6:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTTreeBase and Markup
Posted By: zitz
Subject: CXTTreeBase and Markup
Date 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;



Replies:
Posted By: zitz
Date Posted: 19 February 2009 at 7:13am
How do you like the idea?


Posted By: Oleg
Date 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


Posted By: zitz
Date 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.



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