Enable high-speed rendering mode for IE.

Source: Internet
Author: User

Http://topic.csdn.net/u/20110725/21/1ae8e1ec-9295-45ec-acd2-5d084515a2e1.html

Http://msdn.microsoft.com/en-us/library/ee330730 (V = vs.85). aspx

The high-speed rendering mode of IE8 refers to the use of the IE8 high-speed rendering core in the compatibility mode of sogou browser after the IE8 browser is installed in your system.
If this function is not enabled, the IE8 compatibility mode is used, that is, the IE7 core. IE7 can take care of up and down compatibility. For example, some websites do not test their own compatibility issues and may not be suitable for IE8 core access.

The following code forgets who to repost. The source code comes from the network and is not self-created.

Void winapi writewebbrowserregkey (lpctstr lpkey, DWORD dwvalue) {hkey HK; cstring STR = "SOFTWARE \ Microsoft \ Internet Explorer \ main \ featurecontrol \\"; STR + = lpkey; If (regcreatekey (HKEY_LOCAL_MACHINE, STR, & HK )! = 0) {MessageBox (null, "An error occurred while opening the registry! "," Error ", 0); exitprocess (-1);} If (regsetvalueex (HK," test.exe ", null, REG_DWORD, (const byte *) & dwvalue, 4 )! = 0) {regclosekey (HK); MessageBox (null, "An error occurred while writing the registry! "," Error ", 0); exitprocess (-1);} regclosekey (HK );}

WriteWebBrowserRegKey("FEATURE_BROWSER_EMULATION",9000);  WriteWebBrowserRegKey("FEATURE_ACTIVEX_REPURPOSEDETECTION",1);  WriteWebBrowserRegKey("FEATURE_BLOCK_LMZ_IMG",1);  WriteWebBrowserRegKey("FEATURE_BLOCK_LMZ_OBJECT",1);  WriteWebBrowserRegKey("FEATURE_BLOCK_LMZ_SCRIPT",1);  WriteWebBrowserRegKey("FEATURE_Cross_Domain_Redirect_Mitigation",1);  WriteWebBrowserRegKey("FEATURE_ENABLE_SCRIPT_PASTE_URLACTION_IF_PROMPT",1);  WriteWebBrowserRegKey("FEATURE_LOCALMACHINE_LOCKDOWN",1);  WriteWebBrowserRegKey("FEATURE_GPU_RENDERING",1); 

Above the registry key value, go to the http://msdn.microsoft.com/en-us/ here to search.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.