Print Page | Close Window

GetIcon from Designer Command Bar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=1313
Printed Date: 29 May 2024 at 10:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: GetIcon from Designer Command Bar
Posted By: Alexey
Subject: GetIcon from Designer Command Bar
Date 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?

 




Replies:
Posted By: Alexey
Date Posted: 07 December 2004 at 2:19am
Up


Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net