00001
00002
00003
00004
00005
00006 #if !defined(AFX_WEBBROWSER2_H__62D05735_E9CF_44D2_B2D8_5B7131109D69__INCLUDED_)
00007 #define AFX_WEBBROWSER2_H__62D05735_E9CF_44D2_B2D8_5B7131109D69__INCLUDED_
00008
00009 #if _MSC_VER > 1000
00010 #pragma once
00011 #endif
00012
00013 class CWebBrowser2 : public CWnd
00014 {
00015 protected:
00016 DECLARE_DYNCREATE(CWebBrowser2)
00017 public:
00018 CLSID const& GetClsid()
00019 {
00020 static CLSID const clsid
00021 = { 0x8856f961, 0x340a, 0x11d0, { 0xa9, 0x6b, 0x0, 0xc0, 0x4f, 0xd7, 0x5, 0xa2 } };
00022 return clsid;
00023 }
00024 virtual BOOL Create(LPCTSTR lpszClassName,
00025 LPCTSTR lpszWindowName, DWORD dwStyle,
00026 const RECT& rect,
00027 CWnd* pParentWnd, UINT nID,
00028 CCreateContext* pContext = NULL)
00029 { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
00030
00031 BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
00032 const RECT& rect, CWnd* pParentWnd, UINT nID,
00033 CFile* pPersist = NULL, BOOL bStorage = FALSE,
00034 BSTR bstrLicKey = NULL)
00035 { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
00036 pPersist, bStorage, bstrLicKey); }
00037
00038 public:
00039
00040 public:
00041 void GoBack();
00042 void GoForward();
00043 void GoHome();
00044 void GoSearch();
00045 void Navigate(LPCTSTR URL, VARIANT* Flags, VARIANT* TargetFrameName, VARIANT* PostData, VARIANT* Headers);
00046 void Refresh();
00047 void Refresh2(VARIANT* Level);
00048 void Stop();
00049 LPDISPATCH GetApplication();
00050 LPDISPATCH GetParent();
00051 LPDISPATCH GetContainer();
00052 LPDISPATCH GetDocument();
00053 BOOL GetTopLevelContainer();
00054 CString GetType();
00055 long GetLeft();
00056 void SetLeft(long nNewValue);
00057 long GetTop();
00058 void SetTop(long nNewValue);
00059 long GetWidth();
00060 void SetWidth(long nNewValue);
00061 long GetHeight();
00062 void SetHeight(long nNewValue);
00063 CString GetLocationName();
00064 CString GetLocationURL();
00065 BOOL GetBusy();
00066 void Quit();
00067 void ClientToWindow(long* pcx, long* pcy);
00068 void PutProperty(LPCTSTR Property_, const VARIANT& vtValue);
00069 VARIANT GetProperty_(LPCTSTR Property_);
00070 CString GetName();
00071 long GetHwnd();
00072 CString GetFullName();
00073 CString GetPath();
00074 BOOL GetVisible();
00075 void SetVisible(BOOL bNewValue);
00076 BOOL GetStatusBar();
00077 void SetStatusBar(BOOL bNewValue);
00078 CString GetStatusText();
00079 void SetStatusText(LPCTSTR lpszNewValue);
00080 long GetToolBar();
00081 void SetToolBar(long nNewValue);
00082 BOOL GetMenuBar();
00083 void SetMenuBar(BOOL bNewValue);
00084 BOOL GetFullScreen();
00085 void SetFullScreen(BOOL bNewValue);
00086 void Navigate2(VARIANT* URL, VARIANT* Flags, VARIANT* TargetFrameName, VARIANT* PostData, VARIANT* Headers);
00087 long QueryStatusWB(long cmdID);
00088 void ExecWB(long cmdID, long cmdexecopt, VARIANT* pvaIn, VARIANT* pvaOut);
00089 void ShowBrowserBar(VARIANT* pvaClsid, VARIANT* pvarShow, VARIANT* pvarSize);
00090 long GetReadyState();
00091 BOOL GetOffline();
00092 void SetOffline(BOOL bNewValue);
00093 BOOL GetSilent();
00094 void SetSilent(BOOL bNewValue);
00095 BOOL GetRegisterAsBrowser();
00096 void SetRegisterAsBrowser(BOOL bNewValue);
00097 BOOL GetRegisterAsDropTarget();
00098 void SetRegisterAsDropTarget(BOOL bNewValue);
00099 BOOL GetTheaterMode();
00100 void SetTheaterMode(BOOL bNewValue);
00101 BOOL GetAddressBar();
00102 void SetAddressBar(BOOL bNewValue);
00103 BOOL GetResizable();
00104 void SetResizable(BOOL bNewValue);
00105 };
00106
00107
00108
00109 #endif