In the idochostuihandler: gethostinfo () method of the webbrowser control, for IE7 and later versions, new flags such as dochostuiflag_host_navigates, dochostuiflag_enable_redirect_notification, marker, and delimiter are supported. The dochostuiflag_host_navigates flag must be used with caution. After testing, it is found that in some cases this flag causes webbrowser to "stop responding.
The specific performance is as follows:
1) after this flag is set, the corresponding event will not be triggered when the size and position of the form are set through the script. Including windowsetheight, windowsetleft, windowsettop, and windowsetwidth events in dwebbrowserevents2. If you want to control the new forms generated by a script similar to window. open () by capturing a series of dwebbrowserevents2 events. The preceding events do not notify you of the size and position of the form to be created;
2) After this flag is set, if cancel = true is set in newwindow2 and newwindow3, The webbrowser will enter the "false dead" state, which is represented by the last cancel = true; after you cancel the operation of creating a new form, navigate to other pages again, And webbrowser will not have any event notifications, and webbrowser will not actually perform the navigation operation. The system returns to normal only when the navigate or navigate2 method is called;
For webbrowser, It's okay not to set the flag in disorder.