Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - BUG: CMarkupTreeCtrl  + EnableMultiSelect
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: CMarkupTreeCtrl + EnableMultiSelect

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: BUG: CMarkupTreeCtrl + EnableMultiSelect
    Posted: 08 July 2009 at 8:31am

XTP 13.1.

m_treeCtrl.EnableMultiSelect(); // CMarkupTreeCtrl-derived class
 
After that call you can select multiple items, but selecting ONE item is impossible. You only get an ugly focus rectangle around your item.
 
Actually, there seems to be a problem with right-clicks too. As soon as I inherit CMarkupTreeCtrl, right-clicking causes the focus to go away (painting problem?). Please point me in the right direction. I really need markup and correct tree control behavior :(
PokerMemento - http://www.pokermemento.com/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 July 2009 at 6:21am
Hi,
 
Problem here that GetItemRect assumes item is empty and return with of emty string, so XTTreeCtrl can't determine if curor around item.
 
Weird workaround here is to set some space string to match Markup you have.
 
hItem = InsertItem(_T("                     "), nImage, nSelectedImage, hParent, hInsertAfter);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.184 seconds.