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

Ribbon + Vista skin?

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon + Vista skin?
    Posted: 12 January 2008 at 11:23pm

I believe this has been asked before, but I can't get it working!

I have a ribbon-application with dialog-panes where I want Vista-styled GUI components. This is my rc2-file:
 
#include <XTToolkitPro.rc>
 
#include "Styles\Office2007Blue\Office2007Blue.rc"
#include "Styles\Office2007Aqua\Office2007Aqua.rc"
#include "Styles\Office2007Black\Office2007Black.rc"
#include "Styles\Office2007Silver\Office2007Silver.rc"

#include "SkinFramework\Styles\Vista\Vista.rc"

In CMainFrame::CMainFrame() I call:
XTPSkinManager()->GetResourceFile()->SetModuleHandle(AfxGetInstanceHandle());
 
The problem is that the dialogs are not skinned! However, if I load the skin via LoadSkin() it works:
XTPSkinManager()->LoadSkin("vista.cjstyles");
 
Please help! I do not want this external DLL. Also note that I'm using Xtreme Toolkit Pro v11.2.2.
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: 13 January 2008 at 11:35am
Hi,
Do you have problem only with dialog's background or with dialog controls also ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 13 January 2008 at 2:26pm
Both dialog background and controls. Also, the pane tabs look different, if I recall correctly.
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: 14 January 2008 at 5:38am
Hi,
 
Use these lines:
 
XTPSkinManager()->GetResourceFile()->SetModuleHandle(AfxGetInstanceHandle());
XTPSkinManager()->LoadSkin(NULL, _T("NORMALBLUE.INI"));
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 14 January 2008 at 6:56pm
Thanks! You're da man!
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.219 seconds.