Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.1 KiB

  1. // mainfrm.h : interface of the CMainFrame class
  2. //
  3. // Copyright (C) 1992-1999 Microsoft Corporation
  4. // All rights reserved.
  5. #include "formatba.h"
  6. #include "ruler.h"
  7. class CMainFrame : public CFrameWnd
  8. {
  9. protected: // create from serialization only
  10. CMainFrame();
  11. DECLARE_DYNCREATE(CMainFrame)
  12. // Attributes
  13. public:
  14. HICON m_hIconDoc;
  15. HICON m_hIconText;
  16. HICON m_hIconWrite;
  17. HICON GetIcon(int nDocType);
  18. // Operations
  19. public:
  20. // Overrides
  21. BOOL OnBarCheck(UINT barID);
  22. // ClassWizard generated virtual function overrides
  23. //{{AFX_VIRTUAL(CMainFrame)
  24. public:
  25. virtual void ActivateFrame(int nCmdShow = -1);
  26. protected:
  27. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. public:
  31. virtual ~CMainFrame();
  32. #ifdef _DEBUG
  33. virtual void AssertValid() const;
  34. virtual void Dump(CDumpContext& dc) const;
  35. #endif
  36. public:
  37. CToolBar m_wndToolBar;
  38. CStatusBar m_wndStatusBar;
  39. CFormatBar m_wndFormatBar;
  40. CRulerBar m_wndRulerBar;
  41. protected: // control bar embedded members
  42. BOOL CreateToolBar();
  43. BOOL CreateFormatBar();
  44. BOOL CreateStatusBar();
  45. BOOL CreateRulerBar();
  46. // Generated message map functions
  47. protected:
  48. //{{AFX_MSG(CMainFrame)
  49. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  50. afx_msg void OnSysColorChange();
  51. afx_msg void OnSize(UINT nType, int cx, int cy);
  52. afx_msg void OnMove(int x, int y);
  53. afx_msg void OnHelpFinder();
  54. afx_msg void OnDropFiles(HDROP hDropInfo);
  55. afx_msg void OnCharColor();
  56. afx_msg void OnPenToggle();
  57. afx_msg void OnFontChange();
  58. afx_msg BOOL OnQueryNewPalette();
  59. afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
  60. afx_msg void OnDevModeChange(LPTSTR lpDeviceName);
  61. //}}AFX_MSG
  62. afx_msg LONG OnBarState(UINT wParam, LONG lParam);
  63. afx_msg LONG OnOpenMsg(UINT wParam, LONG lParam);
  64. afx_msg LONG OnOLEHelpMsg(UINT wParam, LONG lParam);
  65. DECLARE_MESSAGE_MAP()
  66. virtual void DelayUpdateFrameMenu(HMENU hMenuAlt);
  67. afx_msg void OnIdleUpdateCmdUI();
  68. bool m_inupdate;
  69. bool m_reset;
  70. };