Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTTreeCtrl bugs
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTTreeCtrl bugs

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


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Topic: CXTTreeCtrl bugs
    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.
 
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post 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..
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.203 seconds.