Print Page | Close Window

CXTTreeCtrl bugs

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=10984
Printed Date: 21 November 2024 at 1:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTTreeCtrl bugs
Posted By: adrien
Subject: CXTTreeCtrl bugs
Date Posted: 10 June 2008 at 11:25pm
Hi
 
I'm having a couple of issues with CXTTreeCtrl.  I thought I'd test against a plain CTreeCtrl, and it raised 2 issues.
 
1. Size calcs.  When items are added to the CXTTreeCtrl, it sets its size to the entire desktop width, which means you get a scroll bar along the bottom.
2. Icons.  If you've set an image index of -1 (no image), it chooses the first image in the list. 
 
The 2 pictures below demonstrate the issue.
 
Note - the size issue only seems to happen if I call SetItemBold / SetItemColor.
 


-------------
http://www.wingate.com - http://www.wingate.com



Replies:
Posted By: adrien
Date Posted: 10 June 2008 at 11:43pm
p.s.
 
I tried just calling
 
   m_NavTreeWnd.m_Control.SetItemState(pItem->m_hTreeItem, TVIS_BOLD, TVIS_BOLD);
still happens.


-------------
http://www.wingate.com - http://www.wingate.com


Posted By: adrien
Date Posted: 10 June 2008 at 11:49pm
hmmmm
 
I tried just calling that SetItemState on a CTreeCtrl, and it STILL happens...
 
so is it a problem with CTreeCtrl, or commctl32.dll or something?
 
unsetting bold doesn't fix the problem..


-------------
http://www.wingate.com - http://www.wingate.com



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