Discussion:
CHtmlView using specific IE version
(too old to reply)
hpesata
2010-11-05 14:02:46 UTC
Permalink
Hi!

I created a MFC app using VC++ 2003.

The app uses a mfc extension dll, which uses CHtmlView to display
context-specific html information.

I realized that CHtmlView displays some html-pages different than IE8
so maybe it uses an older IE-component ?

Heres the javascript navigator obejct output for CHtmlView:

Browser CodeName: Mozilla
Browser Name: Microsoft Internet Explorer
Browser Version: 4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/
4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)
Cookies Enabled: true
Platform: Win32
User-agent header: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)

when I use IE8 the output looks like this:

Browser CodeName: Mozilla
Browser Name: Microsoft Internet Explorer
Browser Version: 4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/
4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)
Cookies Enabled: true
Platform: Win32
User-agent header: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)

is there a way to direct CHtmlView to always use the newest installed
IE-components ?
I played around with _WIN32_IE defiens but it didnt change anything.
besides I couldnt figure out where to use it, in my app or in the
extnsion-dll.

any help with this woudl be greatly appreciated,
thanx in advace!

regards,
Hans
chi sher
2011-07-11 18:57:21 UTC
Permalink
Edit registry
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
"YourApplication.exe" = dword 8000

See following link
http://blogs.msdn.com/b/ie/archive/2009/03/10/more-ie8-extensibility-improvements.aspx
Post by hpesata
Hi!
I created a MFC app using VC++ 2003.
The app uses a mfc extension dll, which uses CHtmlView to display
context-specific html information.
I realized that CHtmlView displays some html-pages different than IE8
so maybe it uses an older IE-component ?
Browser CodeName: Mozilla
Browser Name: Microsoft Internet Explorer
Browser Version: 4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/
4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)
Cookies Enabled: true
Platform: Win32
User-agent header: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)
Browser CodeName: Mozilla
Browser Name: Microsoft Internet Explorer
Browser Version: 4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/
4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)
Cookies Enabled: true
Platform: Win32
User-agent header: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)
is there a way to direct CHtmlView to always use the newest installed
IE-components ?
I played around with _WIN32_IE defiens but it didnt change anything.
besides I couldnt figure out where to use it, in my app or in the
extnsion-dll.
any help with this woudl be greatly appreciated,
thanx in advace!
regards,
Hans
Loading...