Print Page | Close Window

ctreectrl not working

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=8473
Printed Date: 14 November 2025 at 1:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ctreectrl not working
Posted By: jjqin
Subject: ctreectrl not working
Date Posted: 19 October 2007 at 11:11am
Hi,
 
I follow the tree control example try to using my own icon on the tree.  The icon did not show up.
 

void CModelExpTreeCtrl::PreSubclassWindow()

{

InitCommonControls();

bool b = m_ilStateImages.Create(IDB_BITMAP_ON_OFF, 16, 1, RGB(255,255,255));

SetImageList(&m_ilStateImages, TVSIL_STATE);

int num = m_ilStateImages.GetImageCount();

}

 

any help?

Thanks in the advance.
-JianJing



Replies:
Posted By: dennisV
Date Posted: 23 October 2007 at 11:06am
shouldn't it be TVSIL_NORMAL instead of TVSIL_STATE?

-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)



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