m_web为浏览器控件的变量名

	LPDISPATCH p=m_web.GetDocument(); 
	CComQIPtr<IHTMLDocument2,&IID_IHTMLDocument2> d=m_web.GetDocument(); 
	IHTMLElement* body;
	d->get_body(&body);
    CComBSTR context;
	body->get_outerText(&context);
    CString pcstr=	context.m_str;
	MessageBox(pcstr);

  程序员的基础教程:菜鸟程序员

相关文章:

  • 2022-12-23
  • 2022-01-06
  • 2021-06-02
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
猜你喜欢
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2021-09-10
  • 2022-12-23
相关资源
相似解决方案