Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CHtmlView using specific IE version

1,203 views
Skip to first unread message

hpesata

unread,
Nov 5, 2010, 10:02:46 AM11/5/10
to
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

unread,
Jul 11, 2011, 2:57:21 PM7/11/11
to
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

0 new messages