ExplorerBar.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:3k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. #pragma once
  2. #include "CWebBrowser2.h"
  3. class CExplorerBar : public CWnd
  4. {
  5. public:
  6. CExplorerBar(void);
  7. ~CExplorerBar(void);
  8. CWebBrowserCtrl* m_pSearch;
  9. void OnNewWindow2(LPDISPATCH* ppDisp, BOOL* bCancel);
  10. int OnViewSearch();
  11. public:
  12. // afx_msg void OnSize(UINT nType, int cx, int cy);
  13. public:
  14. BEGIN_INTERFACE_PART(DocHostUIHandler, IDocHostUIHandler)
  15.  STDMETHOD(GetOverrideKeyPath)(
  16. /* [out] */ LPOLESTR __RPC_FAR *pchKey,
  17.             /* [in] */ DWORD dw);
  18. STDMETHOD(ShowContextMenu)(/* [in] */ DWORD dwID,
  19.             /* [in] */ POINT __RPC_FAR *ppt,
  20.             /* [in] */ IUnknown __RPC_FAR *pcmdtReserved,
  21.             /* [in] */ IDispatch __RPC_FAR *pdispReserved);
  22. STDMETHOD(GetHostInfo)( 
  23.             /* [out][in] */ DOCHOSTUIINFO __RPC_FAR *pInfo);
  24. STDMETHOD(ShowUI)( 
  25.             /* [in] */ DWORD dwID,
  26.             /* [in] */ IOleInPlaceActiveObject __RPC_FAR *pActiveObject,
  27.             /* [in] */ IOleCommandTarget __RPC_FAR *pCommandTarget,
  28.             /* [in] */ IOleInPlaceFrame __RPC_FAR *pFrame,
  29.             /* [in] */ IOleInPlaceUIWindow __RPC_FAR *pDoc);
  30. STDMETHOD(HideUI)(void);
  31. STDMETHOD(UpdateUI)(void);
  32. STDMETHOD(EnableModeless)(/* [in] */ BOOL fEnable);
  33. STDMETHOD(OnDocWindowActivate)(/* [in] */ BOOL fEnable);
  34. STDMETHOD(OnFrameWindowActivate)(/* [in] */ BOOL fEnable);
  35. STDMETHOD(ResizeBorder)( 
  36.             /* [in] */ LPCRECT prcBorder,
  37.             /* [in] */ IOleInPlaceUIWindow __RPC_FAR *pUIWindow,
  38.             /* [in] */ BOOL fRameWindow);
  39. STDMETHOD(TranslateAccelerator)( 
  40.             /* [in] */ LPMSG lpMsg,
  41.             /* [in] */ const GUID __RPC_FAR *pguidCmdGroup,
  42.             /* [in] */ DWORD nCmdID);
  43. STDMETHOD(GetOptionKeyPath)( 
  44.             /* [out] */ LPOLESTR __RPC_FAR *pchKey,
  45.             /* [in] */ DWORD dw);
  46. STDMETHOD(GetDropTarget)(
  47.             /* [in] */ IDropTarget __RPC_FAR *pDropTarget,
  48.             /* [out] */ IDropTarget __RPC_FAR *__RPC_FAR *ppDropTarget);
  49.         STDMETHOD(GetExternal)( 
  50.             /* [out] */ IDispatch __RPC_FAR *__RPC_FAR *ppDispatch);
  51.         STDMETHOD(TranslateUrl)( 
  52.             /* [in] */ DWORD dwTranslate,
  53.             /* [in] */ OLECHAR __RPC_FAR *pchURLIn,
  54.             /* [out] */ OLECHAR __RPC_FAR *__RPC_FAR *ppchURLOut);
  55.         STDMETHOD(FilterDataObject)( 
  56.             /* [in] */ IDataObject __RPC_FAR *pDO,
  57.             /* [out] */ IDataObject __RPC_FAR *__RPC_FAR *ppDORet);
  58. END_INTERFACE_PART(DocHostUIHandler) 
  59. BEGIN_INTERFACE_PART(OleClientSite, IOleClientSite)
  60. STDMETHOD(SaveObject)( void) { return E_NOTIMPL;}
  61.         
  62.         STDMETHOD (GetMoniker)( 
  63.             /* [in] */ DWORD /*dwAssign*/,
  64.             /* [in] */ DWORD /*dwWhichMoniker*/,
  65.             /* [out] */ IMoniker ** /*ppmk*/) { return E_NOTIMPL;}
  66.         
  67.         STDMETHOD(GetContainer)( 
  68.             /* [out] */ IOleContainer** /*ppContainer*/) { return E_NOTIMPL;}
  69.         
  70.         STDMETHOD(ShowObject)( void) { return E_NOTIMPL;}
  71.         
  72.         STDMETHOD(OnShowWindow)( 
  73.             /* [in] */ BOOL /*fShow*/) { return E_NOTIMPL;}
  74.         
  75.         STDMETHOD(RequestNewObjectLayout)( void) { return E_NOTIMPL;}        
  76. END_INTERFACE_PART(OleClientSite) 
  77. DECLARE_INTERFACE_MAP()
  78. // DECLARE_MESSAGE_MAP()
  79. DECLARE_EVENTSINK_MAP()
  80. DECLARE_MESSAGE_MAP()
  81. afx_msg void OnSize(UINT nType, int cx, int cy);
  82. };