![]() |
Unable to display icon for item |
Post Reply ![]() |
Author | |
iritg ![]() Newbie ![]() Joined: 07 February 2007 Location: Israel Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() Posted: 07 February 2007 at 4:17am |
I'm trying to display a list of items with their respective icons. This does not seem to work on my PC (although it works on someone else's PC), even though everything was built ok: I can see the items on the screen, but I do not see the icons. In my “OnCreate” function called by CComponentsTaskPanelItem (class CComponentsTaskPanelItem : public CXTPTaskPanelGroupItem): GetImageManager()->SetIcons(IDB_TOOLS_MSG, 0, 0, CSize(32, 32)); I'm using the SetIconIndex function (from class CXTPTaskPanelGroupItem): I'm using Visual Studio 2003 and my OS is windows XP + SP2
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Difficult to say without debugging. Code looks right, so problem can be in bitmap.
Can you attach this IDB_TOOLS_MSG bitmap to check?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
iritg ![]() Newbie ![]() Joined: 07 February 2007 Location: Israel Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
problem in bitmap's size. it has size 709*34. but has 22 icons with size 32*32.
How?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
iritg ![]() Newbie ![]() Joined: 07 February 2007 Location: Israel Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
Hi Oleg,
I'll try resizing the bmp and see if it helps.
![]() Thank you,
Irit
|
|
![]() |
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 |