mfc >> XP Look in CDHtmlDialog

by RnJhbmNpc2NvIExvcGV6 » Sat, 08 Jan 2005 01:47:09 GMT

I have created an application, and I have enabled Common controls V6 by
creating a manifest file and Initiating Common Controls. It works properly
whenever I use a standard Dialog but when I use a CDHtmlDialog and create a
html button or a html radio button, it has the old Pre-Windows XP look, Is
there a way to enable XP Look in the buttons created with HTML ?

mfc >> XP Look in CDHtmlDialog

by Jiangsheng[Microsoft MVP of VC++] » Sat, 08 Jan 2005 05:40:28 GMT


overwrite OnGetHostInfo

DOCHOSTUIFLAG_THEME
Internet Explorer 6 or later. Specifies that the hosted browser should use
themes for pages it displays.

DOCHOSTUIFLAG_NOTHEME

Internet Explorer 6 or later. Specifies that the hosted browser should not
use themes for pages it displays.




"Francisco Lopez" <Francisco XXXX@XXXXX.COM > : XXXX@XXXXX.COM ...

mfc >> XP Look in CDHtmlDialog

by RnJhbmNpc2NvIExvcGV6 » Tue, 11 Jan 2005 18:37:07 GMT

Thank you for your quick answer, it gave me the hint I needed.

I can't overwrite OnGetHostInfo since I use CDHtmlDialog, and it doesn't
inherit from CHtmlView, but I discovered that can set the host capabilities
in a DHtmlDialog by using SetHostFlags in InitDialog.

Similar Threads

1. looking for vcl to make control looks like XP

Application using BCB still looks like old windows control under XP. 
I've tried to use the menifest file and some control looks like XP 
control but some other don't. For example, TBitBtn still look like old 
TBitBtn but TButton now look like XP Button. Same goes to TDBCombox and 
TDBLookupComboBox. Anyone found any solution yet?

Regards,
Azrin

2. INF: Looking for sample for CDHtmlDialog

3. Looking for sample for CDHtmlDialog

4. C# with XP look - CSharp/C#

5. XP Look and feel in VSC#.NET

How can I get the Win XP look and feel in Visual Studio C# .NET? I have
tried the MSDN example with the manifest file, but it doesn't seem
to help.

6. XP look and feel in C# app - CSharp/C#

7. Windows XP look n Feel

Hi!

I want my .net application to have a windows look n feel.
How can i enable this. I have tried 1 or 2 third party tools but not very 
satisfied with them
As far as possible I would like to avoid third party tools.
Is there any way out
Pls suggest

Abhishek 


8. Getting XP Style look and feel - CSharp/C#