Share via


CHtmlView::GetLocationName

Call this member function to get the name of the resource being displayed in the WebBrowser.

CString GetLocationName( ) const;

Return Value

A CString object containing the name of the resource currently displayed in the WebBrowser.

Remarks

If the resource is an HTML page on the World Wide Web, the name is the title of that page. If the resource is a folder or file on the network or local computer, the name is the UNC or full path of the folder or file.

Applies to Internet Explorer and WebBrowser.

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlView Class

Hierarchy Chart

CHtmlView::GetLocationURL

IWebBrowser2::get_LocationName