![]() |
alpha icons |
Post Reply
|
| Author | |
hari
Newbie
Joined: 12 July 2007 Location: Iceland Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Topic: alpha iconsPosted: 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 ? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
hari
Newbie
Joined: 12 July 2007 Location: Iceland Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 July 2007 at 5:14am |
|
Thanks.
|
|
![]() |
|
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 |