home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / Epoc / Palmtime / files / FrotzCE2_src.ZIP / FrotzCE / MainFrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-16  |  1.9 KB  |  70 lines

  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #define MAINFRAME ((CMainFrame *) AfxGetApp()->m_pMainWnd)
  6.  
  7. #define WM_UPDATE_MENU WM_USER + 1
  8.  
  9. class CMainFrame : public CFrameWnd
  10. {
  11. protected: // create from serialization only
  12.     CMainFrame();
  13.     DECLARE_DYNCREATE(CMainFrame)
  14.  
  15.     BOOL
  16.         // Flag to indicate if command bar should be shown
  17.         m_bShowCommandBar;
  18.  
  19. // Attributes
  20. public:
  21.     int
  22.         // Current command bar height
  23.         m_nCmdBarHeight;
  24.  
  25. // Operations
  26. public:
  27. // Overrides
  28.     // ClassWizard generated virtual function overrides
  29.     //{{AFX_VIRTUAL(CMainFrame)
  30.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  31.     //}}AFX_VIRTUAL
  32.  
  33. // Implementation
  34. public:
  35.     virtual ~CMainFrame();
  36. #ifdef _DEBUG
  37.     virtual void AssertValid() const;
  38.     virtual void Dump(CDumpContext& dc) const;
  39. #endif
  40.  
  41. // Generated message map functions
  42. protected:
  43.     //{{AFX_MSG(CMainFrame)
  44.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  45.     afx_msg void OnUpdateMenu();
  46.     afx_msg void OnSmallfont();
  47.     afx_msg void OnBoldfont();
  48.     afx_msg void OnUpdateBoldfont(CCmdUI* pCmdUI);
  49.     afx_msg void OnUpdateSmallfont(CCmdUI* pCmdUI);
  50.     afx_msg void OnColours();
  51.     afx_msg void OnUpdateColours(CCmdUI* pCmdUI);
  52.     afx_msg void OnStyles();
  53.     afx_msg void OnUpdateStyles(CCmdUI* pCmdUI);
  54.     afx_msg void OnExpandabbrev();
  55.     afx_msg void OnUpdateExpandabbrev(CCmdUI* pCmdUI);
  56.     afx_msg void OnIgnoreerrors();
  57.     afx_msg void OnUpdateIgnoreerrors(CCmdUI* pCmdUI);
  58.     afx_msg void OnTandy();
  59.     afx_msg void OnUpdateTandy(CCmdUI* pCmdUI);
  60.     afx_msg void OnShowcommandbar();
  61.     afx_msg void OnSize(UINT nType, int cx, int cy);
  62.     afx_msg void OnTerminalfont();
  63.     afx_msg void OnUpdateTerminalfont(CCmdUI* pCmdUI);
  64.     afx_msg void OnUpdateShowcommandbar(CCmdUI* pCmdUI);
  65.     //}}AFX_MSG
  66.     DECLARE_MESSAGE_MAP()
  67. };
  68.  
  69. /////////////////////////////////////////////////////////////////////////////
  70.