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

ini files

 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: ini files
    Posted: 11 November 2009 at 6:50am
Hi
 
I have a program with a frame window and an about dialog (I call aboutdlg.DoModal() when user clicks on Help button).
For the frame, I use the normal RibbonTheme with blue colors.
 
I'd like the dialog to have the ribbon theme with silver colors.
In CAbout::OnInitDlg, after creating commandbars for my cxtpDialog, I set

HMODULE hModule = AfxGetInstanceHandle();

pCommandBars->SetImageHandle(hModule, _T("OFFICE2007SILVER.INI"));
 
but the frame color changes from blue to silver too.
How can I separate the 2 windows?
 
(...Or alternatively, can I apply 2 different skins to 2 dialogs in the same app?)... 
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: 12 November 2009 at 2:01pm
If you look at SkinControl sample it shows how you can use multiple skins.  In this case I would use the Blue theme for ribbon like you already do.  Then look at skincontrols sample to see how to skin the dialog.
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.063 seconds.