Print Page | Close Window

ini files

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=15586
Printed Date: 30 April 2025 at 7:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ini files
Posted By: feffe
Subject: ini files
Date 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?)... 



Replies:
Posted By: SuperMario
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net