Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - 2 questions about skin
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

2 questions about skin

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


Joined: 04 September 2009
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote feffe Quote  Post ReplyReply Direct Link To This Post Topic: 2 questions about skin
    Posted: 16 November 2009 at 7:03am
First:
 
I have a skinned dialog (with office2007.cjstyles, normalsilver.ini). If in DoDataExchange I have
 
DDX_CONTROL(pDX, m_myCXTPButton, IDC_MYBUTTON)
 
the skin does not apply to the button.
So, if I try to call
 
m_myCXTPButton.SetTheme((XTPButtonTheme)xtpButtonThemeOffice2007);
 
I get the blue version of the button, not the silver that I need. What method should I call?

Second: Frame skinned with  office2007.cjstyles, normalsilver.ini. I use Ribbon Theme.

I found out that I have to call

((CXTPOffice2007Theme*)GetCommandBars()->GetPaintManager())->SetImageHandle(hModule, _T("OFFICE2007SILVER.INI"));

What's the difference between office2007silver.ini and normalsilver.ini?
 
I also call other methods, for sizing the ribbon and its caption. But I've seen that the ribbon is modified or not
depending on where I place these calls; for example, in CMainFrame::OnCreate or in CreateRibbonBar they don't work,
probably because other settings are applied later.
So, where should I place these calls to make the code correct?
 
 
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: 18 November 2009 at 7:44am
Hi,
 
Yes to fix Button issue you need load OFFICE2007SILVER.ini before you show it.
 
 
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.125 seconds.