Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - alpha icons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

alpha icons

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


Joined: 12 July 2007
Location: Iceland
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote hari Quote  Post ReplyReply Direct Link To This Post Topic: alpha icons
    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 ?
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
Back to Top
hari View Drop Down
Newbie
Newbie


Joined: 12 July 2007
Location: Iceland
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote hari Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2007 at 5:14am
Thanks.



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