![]() |
ini files |
Post Reply ![]() |
Author | |
feffe ![]() Groupie ![]() Joined: 04 September 2009 Status: Offline Points: 56 |
![]() ![]() ![]() ![]() ![]() 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?)...
![]() |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |