![]() |
CXTTreeBase and Markup |
Post Reply ![]() |
Author | |
zitz ![]() Senior Member ![]() Joined: 05 October 2008 Status: Offline Points: 112 |
![]() ![]() ![]() ![]() ![]() 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; |
|
![]() |
|
zitz ![]() Senior Member ![]() Joined: 05 October 2008 Status: Offline Points: 112 |
![]() ![]() ![]() ![]() ![]() |
How do you like the idea?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I think you can easy adopt this sample to such idea :)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
zitz ![]() Senior Member ![]() Joined: 05 October 2008 Status: Offline Points: 112 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |