Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Standard windows controls lose XP styles Collapse All
Subject Author Date
Jase Wolfe Aug 8, 2007 - 10:32 AM

I’m trying to use some standard windows controls in my application, but any control that is left as a standard control loses XP visual styles.

For instance, in a dialog I have a few buttons, and I leave one of them as a standard CButton instead of making it a CExtButton, the XP visual style is not applied, and it looks like a pre XP control.

Is there any way to retain the CommCtl v6 support in an application that uses the ProfUIS framework?

I’m still learning how to program in VC++. But what I’m looking for is ProfUIS themed windows, toolbars, statusbars, and a few odds and ends controls like the combobox and textbox. But I’d like to retain the XP styled controls on objects like push buttons, check boxes, list controls, etc. etc. Is this possible?

Jase Wolfe Aug 16, 2007 - 6:36 AM

I think I got it to work now.

For some reason I have to add


#define IDR_MANIFEST 1


to Resource.h then import a manifest file into the application resource. I have to build the application (which fails telling me that a duplicate resource of type MANIFEST exists), delete the imported manifest, then build again (this time completing successfully).

After I do all this, the application then successfully uses version 6 of the common controls and XP styles are applied. Thanks for the support.

Again, a great product for the developers community.

Jase Wolfe Aug 13, 2007 - 8:05 AM

I sent in the code and was just wondering if a problem was discovered or if I just screwed something up. Is there any way to fix the issue?

Technical Support Aug 14, 2007 - 1:19 PM

We did not receive any e-mail from you yet. Please ensure you sent it to support@prof-uis.com. Please also rename the extension of your zip file into _zi.

Jase Wolfe Aug 10, 2007 - 6:15 AM

No problem, I can send it to you. But who do I send it to?

Technical Support Aug 10, 2007 - 6:35 AM

Please send it to support@prof-uis.com.

Jase Wolfe Aug 8, 2007 - 2:42 PM

I’m using VS 2005 which has the option of creating an application using the common control manifest through the application wizard. I always leave that box checked. However, themes are still not applied.

I also created an [Application Name].exe.manifest file in the directory of the executable, however this caused the application to fail completely. InitCommonControls() is called in the application.

I created a standard non profuis application that resembled my other application, and that one did use the XP visual styles.

Are there any other suggestions?

Technical Support Aug 9, 2007 - 11:35 AM

Would you send us your test project which reproduces the problem?

Suhai Gyorgy Aug 8, 2007 - 1:28 PM