![]() |
ctreectrl not working |
Post Reply
|
| Author | |
jjqin
Newbie
Joined: 18 October 2007 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Topic: ctreectrl not workingPosted: 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 |
|
![]() |
|
dennisV
Senior Member
Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
Post Options
Thanks(0)
Quote Reply
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) |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |