![]() |
CXTPPropertyPageTreeNavigator Class |
Post Reply ![]() |
Author | |
grace ![]() Newbie ![]() Joined: 02 April 2008 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() Posted: 19 May 2008 at 2:53pm |
I am trying to implement an image list in the tree navigator. I have created the image list, added the bitmaps and set the image list but when I reference the images in the insertitem statement. All I get is a blank space where the image should be. I have verified that the bitmaps will work in another tree. Has anyone been successful with this? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Check in Spy+ if your tree has same styles as test tree.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
grace ![]() Newbie ![]() Joined: 02 April 2008 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
Spy++ has shown no differences......
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
ok, show all related code.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
grace ![]() Newbie ![]() Joined: 02 April 2008 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
Using the CodeJock Property Sheet example:
In CreateTree() I added
CImageList m_ImageList;
CBitmap bmp; m_ImageList.Create(16,16, ILC_COLOR32,1, 2 ); bmp.DeleteObject(); bmp.LoadBitmap( IDB_BITMAP1); m_ImageList.Add( &bmp, RGB(0,0,0)); bmp.DeleteObject(); bmp.LoadBitmap( IDB_BITMAP2); m_ImageList.Add( &bmp, RGB(0,0,0)); SetImageList(&m_ImageList, TVSIL_NORMAL); HTREEITEM hItemGeneral = InsertItem( TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE,_T( "General"),1,1,0,0,0,0,0); I also created an insert structure for the insert item as well but that does not work either. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
I guess problem with Bitmaps.
You have ILC_COLOR32 but add them with black mask.
try to change it
m_ImageList.Add( &bmp, NULL); or use ILC_COLOR24|ILC_MASK
if it will not help attach whole changed project with bitmaps and code.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
grace ![]() Newbie ![]() Joined: 02 April 2008 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
Hi Oleg,
Still no luck.
Thank you for your help. Here is the project
|
|
![]() |
|
grace ![]() Newbie ![]() Joined: 02 April 2008 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
Thanks again Oleg,
I finally have this resolved.
|
|
![]() |
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 |