Partager via


CHtmlView::GetProperty

Call this member function to get the value of the property currently associated with the control.

BOOL GetProperty(
   LPCTSTR lpszProperty,
   CString& strValue 
);
COleVariant GetProperty(
   LPCTSTR lpszProperty 
);

Parameters

  • lpszProperty
    A pointer to a string containing the property to retrieve.

  • strValue
    A reference to a CString object that receives the current value of the property.

Return Value

In the first version, nonzero if completed successfully; otherwise zero. In the second version, a COleVariant object.

Remarks

Applies to Internet Explorer and WebBrowser.

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlView Class

Hierarchy Chart

CHtmlView::PutProperty

IWebBrowser2::GetProperty

Other Resources

CHtmlView Members