webbrowser2.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:4k
源码类别:

模拟服务器

开发平台:

C/C++

  1. #if !defined(AFX_WEBBROWSER2_H__3FF17646_7274_4E03_83D9_2DC908BB9845__INCLUDED_)
  2. #define AFX_WEBBROWSER2_H__3FF17646_7274_4E03_83D9_2DC908BB9845__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  7. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  8. //  Microsoft Visual C++, your modifications will be overwritten.
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CWebBrowser2 wrapper class
  11. class CWebBrowser2 : public CWnd
  12. {
  13. protected:
  14. DECLARE_DYNCREATE(CWebBrowser2)
  15. public:
  16. CLSID const& GetClsid()
  17. {
  18. static CLSID const clsid
  19. = { 0x8856f961, 0x340a, 0x11d0, { 0xa9, 0x6b, 0x0, 0xc0, 0x4f, 0xd7, 0x5, 0xa2 } };
  20. return clsid;
  21. }
  22. virtual BOOL Create(LPCTSTR lpszClassName,
  23. LPCTSTR lpszWindowName, DWORD dwStyle,
  24. const RECT& rect,
  25. CWnd* pParentWnd, UINT nID,
  26. CCreateContext* pContext = NULL)
  27. return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); 
  28. }
  29.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  30. const RECT& rect, CWnd* pParentWnd, UINT nID,
  31. CFile* pPersist = NULL, BOOL bStorage = FALSE,
  32. BSTR bstrLicKey = NULL)
  33. { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  34. pPersist, bStorage, bstrLicKey); }
  35. // Attributes
  36. public:
  37. // Operations
  38. public:
  39. void GoBack();
  40. void GoForward();
  41. void GoHome();
  42. void GoSearch();
  43. void Navigate(LPCTSTR URL, VARIANT* Flags, VARIANT* TargetFrameName, VARIANT* PostData, VARIANT* Headers);
  44. void Refresh();
  45. void Refresh2(VARIANT* Level);
  46. void Stop();
  47. LPDISPATCH GetApplication();
  48. LPDISPATCH GetParent();
  49. LPDISPATCH GetContainer();
  50. LPDISPATCH GetDocument();
  51. BOOL GetTopLevelContainer();
  52. CString GetType();
  53. long GetLeft();
  54. void SetLeft(long nNewValue);
  55. long GetTop();
  56. void SetTop(long nNewValue);
  57. long GetWidth();
  58. void SetWidth(long nNewValue);
  59. long GetHeight();
  60. void SetHeight(long nNewValue);
  61. CString GetLocationName();
  62. CString GetLocationURL();
  63. BOOL GetBusy();
  64. void Quit();
  65. void ClientToWindow(long* pcx, long* pcy);
  66. void PutProperty(LPCTSTR Property_, const VARIANT& vtValue);
  67. VARIANT GetProperty_(LPCTSTR Property_);
  68. CString GetName();
  69. long GetHwnd();
  70. CString GetFullName();
  71. CString GetPath();
  72. BOOL GetVisible();
  73. void SetVisible(BOOL bNewValue);
  74. BOOL GetStatusBar();
  75. void SetStatusBar(BOOL bNewValue);
  76. CString GetStatusText();
  77. void SetStatusText(LPCTSTR lpszNewValue);
  78. long GetToolBar();
  79. void SetToolBar(long nNewValue);
  80. BOOL GetMenuBar();
  81. void SetMenuBar(BOOL bNewValue);
  82. BOOL GetFullScreen();
  83. void SetFullScreen(BOOL bNewValue);
  84. void Navigate2(VARIANT* URL, VARIANT* Flags, VARIANT* TargetFrameName, VARIANT* PostData, VARIANT* Headers);
  85. long QueryStatusWB(long cmdID);
  86. void ExecWB(long cmdID, long cmdexecopt, VARIANT* pvaIn, VARIANT* pvaOut);
  87. void ShowBrowserBar(VARIANT* pvaClsid, VARIANT* pvarShow, VARIANT* pvarSize);
  88. long GetReadyState();
  89. BOOL GetOffline();
  90. void SetOffline(BOOL bNewValue);
  91. BOOL GetSilent();
  92. void SetSilent(BOOL bNewValue);
  93. BOOL GetRegisterAsBrowser();
  94. void SetRegisterAsBrowser(BOOL bNewValue);
  95. BOOL GetRegisterAsDropTarget();
  96. void SetRegisterAsDropTarget(BOOL bNewValue);
  97. BOOL GetTheaterMode();
  98. void SetTheaterMode(BOOL bNewValue);
  99. BOOL GetAddressBar();
  100. void SetAddressBar(BOOL bNewValue);
  101. BOOL GetResizable();
  102. void SetResizable(BOOL bNewValue);
  103. protected:
  104. };
  105. //{{AFX_INSERT_LOCATION}}
  106. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  107. #endif // !defined(AFX_WEBBROWSER2_H__3FF17646_7274_4E03_83D9_2DC908BB9845__INCLUDED_)