![]() |
Set a CBitmap on a TaskPanel ctrl |
Post Reply
|
| Author | |
yoavo
Senior Member
Joined: 29 February 2004 Location: Israel Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Topic: Set a CBitmap on a TaskPanel ctrlPosted: 27 November 2005 at 10:29am |
|
Hi, In my application I have a CXTPTaskPanel control. I need to set a CBitmap object (I can not set it by a resource ID). I tried the following code: CXTPTaskPanelGroup* pFolderA = m_wndTaskPanel.AddGroup(nID); pFolderA->AddLinkItem(IDS_ITEM3); wndTaskPanel.GetImageManager()->SetIcon( (HBITMAP)pBmp,IDS_ITEM3,CSize(16,16)); But unfortunatelly, I do not see any image. Can someone help ? thanks, Yoav. |
|
![]() |
|
yoavo
Senior Member
Joined: 29 February 2004 Location: Israel Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 November 2005 at 11:59pm |
|
I figured it out: I must use CImageList, and use the API that "SetIcons" with ImageList...
|
|
![]() |
|
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 |