GetIcon from Designer Command Bar |
Post Reply |
Author | |
Alexey
Newbie Joined: 05 August 2004 Location: Israel Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 24 October 2004 at 5:32am |
I want to use some icons that created in Designer in my application. To do this I wrote the following code: CXTPCommandBars* pCommandBars = GetCommandBars(); CXTPImageManagerIconHandle& icon = pCommandBars->GetImageManager()->GetImage(ID_FILE_OPEN SESSION)->GetIcon(); But icon handle member m_hIcon contains NULL (icon really exist in resource, it's m_hBitmap handle is not NULL, but it is not usable in my case). What I did wrong?
|
|
Alexey
Newbie Joined: 05 August 2004 Location: Israel Status: Offline Points: 5 |
Post Options
Thanks(0)
|
Up
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
m_hBitmap is used if it is Alpha Icon and m_hIcon if not. It is only one way to support Alpha Icons for all OSes. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |