home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / WORDPAD.PAK / MAINFRM.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  2.1 KB  |  79 lines

  1. // mainfrm.h : interface of the CMainFrame class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "formatba.h"
  14. #include "ruler.h"
  15.  
  16. class CMainFrame : public CFrameWnd
  17. {
  18. protected: // create from serialization only
  19.     CMainFrame();
  20.     DECLARE_DYNCREATE(CMainFrame)
  21.  
  22. // Attributes
  23. public:
  24.     HICON m_hIconDoc;
  25.     HICON m_hIconText;
  26.     HICON m_hIconWrite;
  27.     HICON GetIcon(int nDocType);
  28.  
  29. // Operations
  30. public:
  31.  
  32. // Overrides
  33.     // ClassWizard generated virtual function overrides
  34.     //{{AFX_VIRTUAL(CMainFrame)
  35.     public:
  36.     virtual void ActivateFrame(int nCmdShow = -1);
  37.     protected:
  38.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  39.     //}}AFX_VIRTUAL
  40.  
  41. // Implementation
  42. public:
  43.     virtual ~CMainFrame();
  44. #ifdef _DEBUG
  45.     virtual void AssertValid() const;
  46.     virtual void Dump(CDumpContext& dc) const;
  47. #endif
  48.  
  49. public:
  50.     CToolBar    m_wndToolBar;
  51.     CStatusBar  m_wndStatusBar;
  52.     CFormatBar    m_wndFormatBar;
  53.     CRulerBar    m_wndRulerBar;
  54. protected:  // control bar embedded members
  55.     BOOL CreateToolBar();
  56.     BOOL CreateFormatBar();
  57.     BOOL CreateStatusBar();
  58.     BOOL CreateRulerBar();
  59. // Generated message map functions
  60. protected:
  61.     //{{AFX_MSG(CMainFrame)
  62.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  63.     afx_msg void OnSysColorChange();
  64.     afx_msg void OnSize(UINT nType, int cx, int cy);
  65.     afx_msg void OnMove(int x, int y);
  66.     afx_msg void OnHelpFinder();
  67.     afx_msg void OnDropFiles(HDROP hDropInfo);
  68.     afx_msg void OnCharColor();
  69.     afx_msg void OnPenToggle();
  70.     afx_msg void OnFontChange();
  71.     afx_msg BOOL OnQueryNewPalette();
  72.     afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
  73.     afx_msg void OnDevModeChange(LPTSTR lpDeviceName);
  74.     //}}AFX_MSG
  75.     afx_msg LONG OnBarState(UINT wParam, LONG lParam);
  76.     afx_msg LONG OnOpenMsg(UINT wParam, LONG lParam);
  77.     DECLARE_MESSAGE_MAP()
  78. };
  79.