home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c11 / lab01 / ex01 / webbrowser.h < prev   
Encoding:
C/C++ Source or Header  |  1997-02-20  |  2.4 KB  |  77 lines

  1. #ifndef __WEBBROWSER_H__
  2. #define __WEBBROWSER_H__
  3.  
  4. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  5.  
  6. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  7. //  Microsoft Visual C++, your modifications will be overwritten.
  8.  
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CWebBrowser wrapper class
  11.  
  12. class CWebBrowser : public CWnd
  13. {
  14. protected:
  15.     DECLARE_DYNCREATE(CWebBrowser)
  16. public:
  17.     CLSID const& GetClsid()
  18.     {
  19.         static CLSID const clsid
  20.             = { 0xeab22ac3, 0x30c1, 0x11cf, { 0xa7, 0xeb, 0x0, 0x0, 0xc0, 0x5b, 0xae, 0xb } };
  21.         return clsid;
  22.     }
  23.     virtual BOOL Create(LPCTSTR lpszClassName,
  24.         LPCTSTR lpszWindowName, DWORD dwStyle,
  25.         const RECT& rect,
  26.         CWnd* pParentWnd, UINT nID,
  27.         CCreateContext* pContext = NULL)
  28.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  29.  
  30.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  31.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  32.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  33.         BSTR bstrLicKey = NULL)
  34.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  35.         pPersist, bStorage, bstrLicKey); }
  36.  
  37. // Attributes
  38. public:
  39.  
  40. // Operations
  41. public:
  42.     // method 'QueryInterface' not emitted because of invalid return type or parameter type
  43.     unsigned long AddRef();
  44.     unsigned long Release();
  45.     // method 'GetTypeInfoCount' not emitted because of invalid return type or parameter type
  46.     // method 'GetTypeInfo' not emitted because of invalid return type or parameter type
  47.     // method 'GetIDsOfNames' not emitted because of invalid return type or parameter type
  48.     // method 'Invoke' not emitted because of invalid return type or parameter type
  49.     void GoBack();
  50.     void GoForward();
  51.     void GoHome();
  52.     void GoSearch();
  53.     void Navigate(LPCTSTR URL, VARIANT* Flags, VARIANT* TargetFrameName, VARIANT* PostData, VARIANT* Headers);
  54.     void Refresh();
  55.     void Refresh2(VARIANT* Level);
  56.     void Stop();
  57.     LPDISPATCH GetApplication();
  58.     LPDISPATCH GetParent();
  59.     LPDISPATCH GetContainer();
  60.     LPDISPATCH GetDocument();
  61.     BOOL GetTopLevelContainer();
  62.     CString GetType();
  63.     long GetLeft();
  64.     void SetLeft(long nNewValue);
  65.     long GetTop();
  66.     void SetTop(long nNewValue);
  67.     long GetWidth();
  68.     void SetWidth(long nNewValue);
  69.     long GetHeight();
  70.     void SetHeight(long nNewValue);
  71.     CString GetLocationName();
  72.     CString GetLocationURL();
  73.     BOOL GetBusy();
  74. };
  75.  
  76. #endif // __WEBBROWSER_H__
  77.