home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / ipframe.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.3 KB  |  119 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #ifndef __InPlaceFrame_H
  20. #define __InPlaceFrame_H
  21. // ipframe.h : interface of the CInPlaceFrame class
  22. //
  23. //#include "nstoolbr.h"
  24. #include "frameglu.h"
  25. #include "urlbar.h"
  26.  
  27. #include "statbar.h"
  28.  
  29. class CInPlaceFrame : public COleIPFrameWnd, public CFrameGlue
  30. {
  31.     DECLARE_DYNCREATE(CInPlaceFrame)
  32. public:
  33.     CInPlaceFrame();
  34.  
  35. //    CFrameGlue required overrides
  36. public:
  37. //    CNSToolbar2 m_wndToolBar;
  38. //    CCommandToolbar *m_wndToolBar;
  39.     CURLBar        m_wndURLBar;
  40.     BOOL        m_iShowURLBar;
  41.     BOOL        m_iShowStarterBar;
  42.     int16        m_iCSID;
  43.  
  44.     virtual CFrameWnd *GetFrameWnd();
  45.     virtual void UpdateHistoryDialog();
  46.     void    ShowControlBars(CFrameWnd* pFrameWnd, BOOL bShow);
  47.     void    ReparentControlBars(void);
  48.  
  49.     CNetscapeStatusBar m_barStatus;
  50.         
  51. //    The frame we took over from.
  52. private:
  53.     CFrameGlue *m_pProxy2Frame;
  54.  
  55. //    Wether or not we've formally created the
  56. //        control bars.
  57. private:
  58.     BOOL m_bCreatedControls;
  59.  
  60. // Attributes
  61. public:
  62.     void DestroyResizeBar(); //JOKI
  63.  
  64. // Operations
  65. public:
  66.     virtual BOOL LoadFrame(UINT nIDResource,
  67.         DWORD dwDefaultStyle = WS_CHILD|WS_BORDER|WS_CLIPSIBLINGS,
  68.         CWnd* pParentWnd = NULL,
  69.         CCreateContext* pContext = NULL);
  70.     virtual BOOL BuildSharedMenu();
  71.  
  72.  
  73. // Overrides
  74.     // ClassWizard generated virtual function overrides
  75.     //{{AFX_VIRTUAL(CInPlaceFrame)
  76.     public:
  77.     virtual BOOL OnCreateControlBars(CWnd* pWndFrame, CWnd* pWndDoc);
  78.     virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
  79.     protected:
  80.     virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  81.     afx_msg void OnInitMenuPopup(CMenu * pPopup, UINT nIndex, BOOL bSysMenu);
  82.     afx_msg void OnMenuSelect(UINT nItemID, UINT nFlags, HMENU hSysMenu);
  83.     afx_msg void OnToolsWeb();
  84.  
  85.     //}}AFX_VIRTUAL
  86.  
  87. // Implementation
  88. public:
  89.     virtual ~CInPlaceFrame();
  90. #ifdef _DEBUG
  91.     virtual void AssertValid() const;
  92.     virtual void Dump(CDumpContext& dc) const;
  93. #endif
  94.  
  95. protected:
  96.     COleResizeBar   m_wndResizeBar;
  97.     COleDropTarget m_dropTarget;
  98.  
  99. // Generated message map functions
  100. protected:
  101.  
  102.     void AddBookmarksMenu(void);
  103.     virtual HMENU GetInPlaceMenu();
  104.  
  105.     //{{AFX_MSG(CInPlaceFrame)
  106.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  107.     afx_msg void OnSetFocus(CWnd* pOldWnd);
  108.     afx_msg void OnHotlistView();
  109.     afx_msg LRESULT OnFindReplace(WPARAM wParam, LPARAM lParam);
  110.     afx_msg BOOL OnQueryNewPalette();
  111.     afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
  112.  
  113.     //}}AFX_MSG
  114.     DECLARE_MESSAGE_MAP()
  115. };
  116.  
  117. /////////////////////////////////////////////////////////////////////////////
  118. #endif // __InPlaceFrame_H
  119.