Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CWebCtrl Class Reference

#include <CtrlWeb.h>

List of all members.

Public Member Functions

 CWebCtrl ()
virtual ~CWebCtrl ()
BOOL Create (DWORD dwStyle, CWnd *pParentWnd, UINT nID=AFX_IDW_PANE_FIRST)
void EnableCoolMenu (BOOL bEnable=TRUE)
void EnableSandbox (BOOL bSandbox=TRUE)
void SetExternal (IDispatch *pDispatch)
HRESULT Navigate (LPCTSTR lpszURL, DWORD dwFlags=0, LPCTSTR lpszTargetFrameName=NULL, LPCTSTR lpszHeaders=NULL, LPVOID lpvPostData=NULL, DWORD dwPostDataLen=0)

Protected Member Functions

virtual BOOL PreTranslateMessage (MSG *pMsg)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDestroy ()
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnPaint ()
void EnterMenu (POINT *pPoint)
virtual void BeforeNavigate2 (LPDISPATCH pDispatch, VARIANT *pvURL, VARIANT *pvFlags, VARIANT *pvTargetFrameName, VARIANT *pvPostData, VARIANT *pvHeaders, VARIANT_BOOL *pvCancel)
virtual void OnNewWindow2 (LPDISPATCH *ppDisp, VARIANT_BOOL *bCancel)
virtual BOOL CreateControlSite (COleControlContainer *pContainer, COleControlSite **ppSite, UINT nID, REFCLSID clsid)

Static Protected Member Functions

static LRESULT PASCAL WebWndProc (HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam)

Protected Attributes

CWnd m_wndBrowser
CComPtr< IWebBrowser2 > m_pBrowser
CComPtr< IDispatch > m_pExternal
BOOL m_bSandbox
DWORD m_tFrame
CCoolMenum_pMenu
HWND m_hWndThis
WNDPROC m_pWndProc

Static Protected Attributes

static CWebCtrlm_pThis = NULL

Classes

class  DocSite


Constructor & Destructor Documentation

CWebCtrl::CWebCtrl  ) 
 

Definition at line 56 of file CtrlWeb.cpp.

References NULL.

CWebCtrl::~CWebCtrl  )  [virtual]
 

Definition at line 63 of file CtrlWeb.cpp.

References EnterMenu(), m_pMenu, and NULL.


Member Function Documentation

void CWebCtrl::BeforeNavigate2 LPDISPATCH  pDispatch,
VARIANT *  pvURL,
VARIANT *  pvFlags,
VARIANT *  pvTargetFrameName,
VARIANT *  pvPostData,
VARIANT *  pvHeaders,
VARIANT_BOOL *  pvCancel
[protected, virtual]
 

Definition at line 282 of file CtrlWeb.cpp.

References m_pBrowser, m_tFrame, and NULL.

BOOL CWebCtrl::Create DWORD  dwStyle,
CWnd *  pParentWnd,
UINT  nID = AFX_IDW_PANE_FIRST
 

Definition at line 75 of file CtrlWeb.cpp.

References NULL.

Referenced by CLibraryCollectionView::OnCreate().

BOOL CWebCtrl::CreateControlSite COleControlContainer *  pContainer,
COleControlSite **  ppSite,
UINT  nID,
REFCLSID  clsid
[protected, virtual]
 

Definition at line 316 of file CtrlWeb.cpp.

References NULL.

void CWebCtrl::EnableCoolMenu BOOL  bEnable = TRUE  ) 
 

Definition at line 82 of file CtrlWeb.cpp.

References EnterMenu(), CSkin::GetWatermark(), m_pMenu, NULL, CCoolMenu::SetWatermark(), and Skin.

Referenced by CLibraryCollectionView::OnCreate().

void CWebCtrl::EnableSandbox BOOL  bSandbox = TRUE  ) 
 

Definition at line 99 of file CtrlWeb.cpp.

References m_bSandbox, and m_pBrowser.

Referenced by CLibraryCollectionView::OnCreate().

void CWebCtrl::EnterMenu POINT *  pPoint  )  [protected]
 

Definition at line 219 of file CtrlWeb.cpp.

References _tcsistr(), m_hWndThis, m_pMenu, m_pThis, m_pWndProc, NULL, and WebWndProc().

Referenced by EnableCoolMenu(), OnDestroy(), and ~CWebCtrl().

HRESULT CWebCtrl::Navigate LPCTSTR  lpszURL,
DWORD  dwFlags = 0,
LPCTSTR  lpszTargetFrameName = NULL,
LPCTSTR  lpszHeaders = NULL,
LPVOID  lpvPostData = NULL,
DWORD  dwPostDataLen = 0
 

Definition at line 110 of file CtrlWeb.cpp.

References m_pBrowser, and NULL.

Referenced by CLibraryCollectionView::OnCreate(), and CLibraryCollectionView::ShowCollection().

int CWebCtrl::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Definition at line 133 of file CtrlWeb.cpp.

References m_bSandbox, m_pBrowser, m_wndBrowser, and NULL.

void CWebCtrl::OnDestroy  )  [protected]
 

Definition at line 163 of file CtrlWeb.cpp.

References EnterMenu(), m_pBrowser, m_wndBrowser, and NULL.

void CWebCtrl::OnNewWindow2 LPDISPATCH *  ppDisp,
VARIANT_BOOL *  bCancel
[protected, virtual]
 

Definition at line 303 of file CtrlWeb.cpp.

References m_bSandbox, and m_tFrame.

void CWebCtrl::OnPaint  )  [protected]
 

Definition at line 199 of file CtrlWeb.cpp.

References m_wndBrowser.

void CWebCtrl::OnSize UINT  nType,
int  cx,
int  cy
[protected]
 

Definition at line 185 of file CtrlWeb.cpp.

References m_wndBrowser, and NULL.

BOOL CWebCtrl::PreTranslateMessage MSG *  pMsg  )  [protected, virtual]
 

Definition at line 173 of file CtrlWeb.cpp.

References m_pBrowser.

void CWebCtrl::SetExternal IDispatch *  pDispatch  ) 
 

Definition at line 105 of file CtrlWeb.cpp.

References m_pExternal.

Referenced by CLibraryCollectionView::OnCreate().

LRESULT PASCAL CWebCtrl::WebWndProc HWND  hWnd,
UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam
[static, protected]
 

Definition at line 252 of file CtrlWeb.cpp.

References CCoolMenu::AddMenu(), m_hWndThis, m_pMenu, m_pThis, m_pWndProc, NULL, CCoolMenu::OnDrawItem(), and CCoolMenu::OnMeasureItem().

Referenced by EnterMenu().


Member Data Documentation

BOOL CWebCtrl::m_bSandbox [protected]
 

Definition at line 48 of file CtrlWeb.h.

Referenced by EnableSandbox(), OnCreate(), and OnNewWindow2().

HWND CWebCtrl::m_hWndThis [protected]
 

Definition at line 66 of file CtrlWeb.h.

Referenced by EnterMenu(), and WebWndProc().

CComPtr<IWebBrowser2> CWebCtrl::m_pBrowser [protected]
 

Definition at line 46 of file CtrlWeb.h.

Referenced by BeforeNavigate2(), EnableSandbox(), Navigate(), OnCreate(), OnDestroy(), and PreTranslateMessage().

CComPtr<IDispatch> CWebCtrl::m_pExternal [protected]
 

Definition at line 47 of file CtrlWeb.h.

Referenced by SetExternal().

CCoolMenu* CWebCtrl::m_pMenu [protected]
 

Definition at line 65 of file CtrlWeb.h.

Referenced by EnableCoolMenu(), EnterMenu(), WebWndProc(), and ~CWebCtrl().

CWebCtrl * CWebCtrl::m_pThis = NULL [static, protected]
 

Definition at line 217 of file CtrlWeb.cpp.

Referenced by EnterMenu(), and WebWndProc().

WNDPROC CWebCtrl::m_pWndProc [protected]
 

Definition at line 67 of file CtrlWeb.h.

Referenced by EnterMenu(), and WebWndProc().

DWORD CWebCtrl::m_tFrame [protected]
 

Definition at line 49 of file CtrlWeb.h.

Referenced by BeforeNavigate2(), and OnNewWindow2().

CWnd CWebCtrl::m_wndBrowser [protected]
 

Definition at line 45 of file CtrlWeb.h.

Referenced by OnCreate(), OnDestroy(), OnPaint(), and OnSize().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:13 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2