Script error in WebBrowser control
===

Implementing  Webbrowser control in MFC VC++ application. when there are script errors on the page it displays all the time even when I un-select "Display a notification about every script error" in Internet Explorer. This control inherits the other options like "Show Images" from IE but not script errors. 

I tried to debug "OnNavigateError()" and "OnNewBrowserWindow()" events but it still does not come here. I know in C# there is a property called "ScriptErrorsSuppressed" to disable script error in webbrowser control but how to do it in VC++. please help.