Q ========================================= I want to control IE search in VC What should I do? 2004-09-29 01:07:57 Answ ======================================== = IE search bar has the default search page "http://ie.search.msn.com/ {{sb_11asness.htm", you can specify your own search page. Open Registry HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Internet Explorer / Search, find the "Searchassistant" key, its default value is "http://ie.search.msn.com/ {{s_rfc1766 }/srchasst/srchasst.htm" is displayed In the page URL in the IE search panel, modify it to the search page URL you need, such as "http://www.google.com". There is also a "customizesearch" key under hkey_local_machine / suffware / microsoft / Internet Explorer / Search, its default value is "http://ie.search.msn.com/ {{__11766 }/srchasst/srchcust.htm" (note Searchassistant Different) When you click the "Custom" button on the IE search panel, the page will be displayed in the pop-up HTML dialog, which can also be modified to our desirable URL. If you want to use a custom shortcut search (just if you only enter a keyword like 3721, you will automatically go to the appropriate website), IE provides your own chance. When IE can't confirm the user's address (such as http: // et al.) Entered in the address bar (such as http: //, etc.), it will create a URL with the class ID under HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Internet Explorer / Urlsearchhooks. Search Hook objects and calls its Translate method to resolve the address (keyword) entered by the address bar. So we can write a COM object to implement the IurlsearchHook interface and search in the way you like or choose your own search engine in its translate method. Quote address:
FAQ: Control IE Search Bar