共用方式為


CHtmlView::GetFullName

Call this member function to retrieve the full path of the file that Internet Explorer is currently displaying.

CString GetFullName( ) const;

Return Value

A CString object containing the path and name of the currently displayed file. If no path and filename exist, GetFullName returns an empty CString.

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

Concepts

CHtmlView Class

CHtmlView Members

Hierarchy Chart

IWebBrowser2::get_FullName