Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Icon effects
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Icon effects

 Post Reply Post Reply
Author
Message
gmail View Drop Down
Groupie
Groupie


Joined: 24 February 2008
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote gmail Quote  Post ReplyReply Direct Link To This Post Topic: Icon effects
    Posted: 05 January 2009 at 3:51pm
Your CXTPCommandBars have the following cool effect on icons:

XTP_COMMANDBARS_ICONSINFO* pIconsInfo=XTPPaintManager()->GetIconsInfo();
    pIconsInfo->bUseDisabledIcons=TRUE;
    pIconsInfo->bIconsWithShadow=TRUE;
    pIconsInfo->bUseFadedIcons=TRUE;

I'm wondering how can I achieve this effect on some other icon regardless of CXTPCommandBars (i.e. CStatic icon object)? I've checked CXTPDrawHelpers and CXTPImageManager but can't seem to achieve this with those drawing helper classes. Please help!
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: 06 January 2009 at 1:38am
Hi,
 
You can call XTPPaintManager()->DrawImage(...) to draw it with current style.
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.172 seconds.