Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Task Panel
  New Posts New Posts RSS Feed - Unable to display icon for item
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Unable to display icon for item

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


Joined: 07 February 2007
Location: Israel
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote iritg Quote  Post ReplyReply Direct Link To This Post Topic: Unable to display icon for item
    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):

 

      pItem->SetIconIndex(pGroupMember->iconIndex);
 
I'm using Visual Studio 2003 and my OS is windows XP + SP2
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 07 February 2007 at 3:18pm
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
Back to Top
iritg View Drop Down
Newbie
Newbie


Joined: 07 February 2007
Location: Israel
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote iritg Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2007 at 3:17am
Hi Oleg,
 
Here is the IDB_TOOLS_MSG bitmap: (zipped)
 
Regards,
Irit
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2007 at 5:26am
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
Back to Top
iritg View Drop Down
Newbie
Newbie


Joined: 07 February 2007
Location: Israel
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote iritg Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2007 at 9:14am
Hi Oleg,
 
I'll try resizing the bmp and see if it helps.
 
Thank you,
Irit
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.203 seconds.