Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - GetIcon from Designer Command Bar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

GetIcon from Designer Command Bar

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


Joined: 05 August 2004
Location: Israel
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alexey Quote  Post ReplyReply Direct Link To This Post Topic: GetIcon from Designer Command Bar
    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?

 

Back to Top
Alexey View Drop Down
Newbie
Newbie


Joined: 05 August 2004
Location: Israel
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alexey Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2004 at 2:19am
Up
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 December 2004 at 5:33am

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
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.156 seconds.