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

Dialog themes

 Post Reply Post Reply
Author
Message
JamesP View Drop Down
Groupie
Groupie
Avatar

Joined: 07 January 2009
Location: United Kingdom
Status: Offline
Points: 73
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamesP Quote  Post ReplyReply Direct Link To This Post Topic: Dialog themes
    Posted: 08 January 2009 at 12:15pm
We're trying to implement the Ribbon Bar in our applications and would like the Dialogs that appear to have the same Office 2007 look.
 
Do I have to learn how to implement Skins and if so can anyone point me in the right direction.
 
Thanks
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 08 January 2009 at 2:10pm
You need skins.

Try something like:

    SkinFramework.LoadSkin App.Path + _

    XTPSkinManager()->LoadSkin(_T("..\..\..\Styles\WinXP.Luna.cjstyles"),

                               _T("NormalBlue.ini"));

    XTPSkinManager()->SetAutoApplyNewWindows(FALSE);

    XTPSkinManager()->ApplyWindow(pWnd->GetSafeHwnd());


Back to Top
JamesP View Drop Down
Groupie
Groupie
Avatar

Joined: 07 January 2009
Location: United Kingdom
Status: Offline
Points: 73
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamesP Quote  Post ReplyReply Direct Link To This Post Posted: 09 January 2009 at 9:57am

A simple call to LoadSkin worked perfectly, thanks.

Unfortunately, this has got us excited about using Skins and I can't see a way of changing the Ribbon to match the loaded skin.
 
Do I need to call a function to apply the skin to the MainFrame, maybe with a call like XTPSkinManager()->ApplyWindow(afxGetMainWnd())?
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.031 seconds.