webbrowser2.h
上传用户:hjw22cn
上传日期:2007-01-11
资源大小:192k
文件大小:4k
源码类别:

Tab控件

开发平台:

Visual C++

  1. #if !defined(AFX_WEBBROWSER2_H__540EEFA3_C085_11D4_B7AA_0050DAB84384__INCLUDED_)
  2. #define AFX_WEBBROWSER2_H__540EEFA3_C085_11D4_B7AA_0050DAB84384__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.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  29. const RECT& rect, CWnd* pParentWnd, UINT nID,
  30. CFile* pPersist = NULL, BOOL bStorage = FALSE,
  31. BSTR bstrLicKey = NULL)
  32. { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  33. pPersist, bStorage, bstrLicKey); }
  34. // Attributes
  35. public:
  36. // Operations
  37. public:
  38. void GoBack();
  39. void GoForward();
  40. void GoHome();
  41. void GoSearch();
  42. void Navigate(LPCTSTR URL, VARIANT* Flags, VARIANT* TargetFrameName, VARIANT* PostData, VARIANT* Headers);
  43. void Refresh();
  44. void Refresh2(VARIANT* Level);
  45. void Stop();
  46. LPDISPATCH GetApplication();
  47. LPDISPATCH GetParent();
  48. LPDISPATCH GetContainer();
  49. LPDISPATCH GetDocument();
  50. BOOL GetTopLevelContainer();
  51. CString GetType();
  52. long GetLeft();
  53. void SetLeft(long nNewValue);
  54. long GetTop();
  55. void SetTop(long nNewValue);
  56. long GetWidth();
  57. void SetWidth(long nNewValue);
  58. long GetHeight();
  59. void SetHeight(long nNewValue);
  60. CString GetLocationName();
  61. CString GetLocationURL();
  62. BOOL GetBusy();
  63. void Quit();
  64. void ClientToWindow(long* pcx, long* pcy);
  65. void PutProperty(LPCTSTR Property_, const VARIANT& vtValue);
  66. VARIANT GetProperty_(LPCTSTR Property_);
  67. CString GetName();
  68. long GetHwnd();
  69. CString GetFullName();
  70. CString GetPath();
  71. BOOL GetVisible();
  72. void SetVisible(BOOL bNewValue);
  73. BOOL GetStatusBar();
  74. void SetStatusBar(BOOL bNewValue);
  75. CString GetStatusText();
  76. void SetStatusText(LPCTSTR lpszNewValue);
  77. long GetToolBar();
  78. void SetToolBar(long nNewValue);
  79. BOOL GetMenuBar();
  80. void SetMenuBar(BOOL bNewValue);
  81. BOOL GetFullScreen();
  82. void SetFullScreen(BOOL bNewValue);
  83. void Navigate2(VARIANT* URL, VARIANT* Flags, VARIANT* TargetFrameName, VARIANT* PostData, VARIANT* Headers);
  84. long QueryStatusWB(long cmdID);
  85. void ExecWB(long cmdID, long cmdexecopt, VARIANT* pvaIn, VARIANT* pvaOut);
  86. void ShowBrowserBar(VARIANT* pvaClsid, VARIANT* pvarShow, VARIANT* pvarSize);
  87. long GetReadyState();
  88. BOOL GetOffline();
  89. void SetOffline(BOOL bNewValue);
  90. BOOL GetSilent();
  91. void SetSilent(BOOL bNewValue);
  92. BOOL GetRegisterAsBrowser();
  93. void SetRegisterAsBrowser(BOOL bNewValue);
  94. BOOL GetRegisterAsDropTarget();
  95. void SetRegisterAsDropTarget(BOOL bNewValue);
  96. BOOL GetTheaterMode();
  97. void SetTheaterMode(BOOL bNewValue);
  98. BOOL GetAddressBar();
  99. void SetAddressBar(BOOL bNewValue);
  100. BOOL GetResizable();
  101. void SetResizable(BOOL bNewValue);
  102. };
  103. //{{AFX_INSERT_LOCATION}}
  104. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  105. #endif // !defined(AFX_WEBBROWSER2_H__540EEFA3_C085_11D4_B7AA_0050DAB84384__INCLUDED_)