CXTTreeCtrl bugs |
Post Reply |
Author | |
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
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.
|
|
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
|
p.s.
I tried just calling
m_NavTreeWnd.m_Control.SetItemState(pItem->m_hTreeItem, TVIS_BOLD, TVIS_BOLD);
still happens.
|
|
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
|
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..
|
|
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 |