共用方式為


CHtmlView::SetToolBar

Call this member function to show or hide the Internet Explorer toolbar.

void SetToolBar(
   int nNewValue 
);

Parameters

  • nNewValue
    Indicates whether to display the toolbar. Nonzero if the toolbar is to be displayed; otherwise zero.

Remarks

Applies to Internet Explorer. If you use this call with a WebBrowser control, it will return no error, but it will ignore this call.

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlView Class

Hierarchy Chart

CHtmlView::GetToolBar

IWebBrowser2::put_ToolBar

Other Resources

CHtmlView Members