Share via


CHtmlView::SetRegisterAsBrowser

Call this member function to set a value indicating whether the WebBrowser control is registered as a top-level browser for target name resolution.

void SetRegisterAsBrowser(
   BOOL bNewValue 
);

Parameters

  • bNewValue
    Determines whether Internet Explorer is registered as a top-level browser. If nonzero, the web browser is registered as a top-level browser; if zero, it is not a top-level browser. The default value is zero.

Remarks

A top-level browser is the browser set in the registry as the default browser.

Applies to Internet Explorer and WebBrowser.

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlView Class

Hierarchy Chart

CHtmlView::GetRegisterAsBrowser

IWebBrowser2::put_RegisterAsBrowser

Other Resources

CHtmlView Members