CHtmlView::PutProperty

调用此成员函数上设置属性与特定对象。

void PutProperty( 
   LPCTSTR lpszProperty, 
   const VARIANT& vtValue  
); 
void PutProperty( 
   LPCTSTR lpszPropertyName, 
   double dValue  
); 
void PutProperty( 
   LPCTSTR lpszPropertyName, 
   long lValue  
); 
void PutProperty( 
   LPCTSTR lpszPropertyName, 
   LPCTSTR lpszValue  
); 
void PutProperty( 
   LPCTSTR lpszPropertyName, 
   short nValue  
);

参数

  • lpszProperty
    包含属性的字符串设置。

  • vtValue
    lpszProperty表示属性的新值。

  • lpszPropertyName
    对包含属性的名称字符串的指针设置。

  • D值
    属性的新值。

  • lValue
    属性的新值。

  • lpszValue
    对包含属性的新值字符串的指针。

  • nValue
    属性的新值。

备注

适用于Internet Explorer和浏览器。

要求

Header: afxhtml.h

请参见

参考

CHtmlView Class

层次结构图

CHtmlView::GetProperty

IWebBrowser2::PutProperty