Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTShellTree and TVS_CHECKBOXES?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTShellTree and TVS_CHECKBOXES?

 Post Reply Post Reply
Author
Message
tomo View Drop Down
Newbie
Newbie


Joined: 07 December 2004
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote tomo Quote  Post ReplyReply Direct Link To This Post Topic: CXTShellTree and TVS_CHECKBOXES?
    Posted: 07 December 2004 at 8:39pm
Is the TVS_CHECKBOXES style supported by the CXTShellTree class?  Currently the tree view will display correctly until the mouse is moved over the items and then the checkboxes disappear.

The GUI_Explorer sample can be modified to show the effect...

 if( !m_shellTree.Create(WS_VISIBLE | TVS_CHECKBOXES, CRect(0,0,0,0), this, IDC_TREE_VIEW))

Back to Top
ICBM View Drop Down
Groupie
Groupie


Joined: 15 January 2004
Location: New Zealand
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote ICBM Quote  Post ReplyReply Direct Link To This Post Posted: 10 December 2004 at 2:22pm

I reported this as a bug just recently, confirmed by codejock. Replace as follows and rebuild the codejock libraries:

In XTTreeBase.cpp, replace

#define TVIS_UNDERLINE 0x1000

with

#define TVIS_UNDERLINE 0x10000

Also, unrelated bug that may cause your tree control to not be populated...

In CXTShellTreeBase::InitializeTree, replace

if (!m_pTreeCtrl->ModifyStyle(NULL, dwStyle)) {

return FALSE;

}

with

m_pTreeCtrl->ModifyStyle(NULL, dwStyle);

 

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.063 seconds.