Print Page | Close Window

CXTShellTree and TVS_CHECKBOXES?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1505
Printed Date: 20 January 2025 at 8:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTShellTree and TVS_CHECKBOXES?
Posted By: tomo
Subject: CXTShellTree and TVS_CHECKBOXES?
Date 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))




Replies:
Posted By: ICBM
Date 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);

 




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