Print Page | Close Window

alpha icons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7584
Printed Date: 13 November 2025 at 8:11am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: alpha icons
Posted By: hari
Subject: alpha icons
Date Posted: 12 July 2007 at 2:53am
hi

I am new here, can someone please help ?

1) I would like to show an alpha icon in a dialog.
(CStatic wont allow 32 bit I think). How can I do this ?

Only an icon need to be shown, no text needed.

when i used the CXTbutton class in a disabled state, it automatically made the icon gray.


2) I would like to draw a button with background bitmap and text in the foreground. Can i do this ? Can I specifiy the highlight and normal background bitmaps ?



Replies:
Posted By: Oleg
Date Posted: 12 July 2007 at 3:00am
Hello,
 
Create class derived from CStatic, catch WM_PAINT and manually draw this icon:
 
 
CXTPImageManagerIcon* pIcon = pButton->GetIcon();
Icon->Draw(pDC, pt, pIcon->GetIcon());


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: hari
Date Posted: 12 July 2007 at 5:14am
Thanks.






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