CHtmlView::GetSource

 

Call this member function to retrieve the HTML source code for the web page.

Syntax

      BOOL GetSource(
   CString& strRef 
);

Return Value

Nonzero if successful; otherwise zero.

Parameters

  • refString
    A CString that will hold the source code.

Remarks

This function is equivalent to the "View Source" command in Internet Explorer, except that the source code is returned in a CString.

Requirements

Header: afxhtml.h

See Also

CHtmlView Class
Hierarchy Chart