Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - ctreectrl not working
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ctreectrl not working

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


Joined: 18 October 2007
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote jjqin Quote  Post ReplyReply Direct Link To This Post Topic: ctreectrl not working
    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
Back to Top
dennisV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 October 2004
Location: Australia
Status: Offline
Points: 242
Post Options Post Options   Thanks (0) Thanks(0)   Quote dennisV Quote  Post ReplyReply Direct Link To This Post 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)
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.048 seconds.