MainFrm.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MAINFRM_H__85B70812_749B_45EA_BDB9_C5EEB31DD1C8__INCLUDED_)
  5. #define AFX_MAINFRM_H__85B70812_749B_45EA_BDB9_C5EEB31DD1C8__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CMainFrame : public CFrameWnd
  10. {
  11. protected: // create from serialization only
  12. CMainFrame();
  13. DECLARE_DYNCREATE(CMainFrame)
  14. // Attributes
  15. public:
  16. // Operations
  17. public:
  18. // Overrides
  19. // ClassWizard generated virtual function overrides
  20. //{{AFX_VIRTUAL(CMainFrame)
  21. public:
  22. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  23. protected:
  24. //}}AFX_VIRTUAL
  25. // Implementation
  26. public:
  27. virtual ~CMainFrame();
  28. CStatusBar m_wndStatusBar;
  29. CToolBar m_wndToolBar;
  30. CString m_strFileName;
  31. #ifdef _DEBUG
  32. virtual void AssertValid() const;
  33. virtual void Dump(CDumpContext& dc) const;
  34. #endif
  35. protected: // control bar embedded members
  36. // Generated message map functions
  37. protected:
  38. //{{AFX_MSG(CMainFrame)
  39. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  40. afx_msg void OnSelchangeComboFind();//ÏìÓ¦CBN_SELCHANGEÏûÏ¢µÄº¯Êý
  41. afx_msg void OnEditPaste();
  42. afx_msg void OnEditcut();
  43. afx_msg void OnUpdateEditcut(CCmdUI* pCmdUI);
  44. afx_msg void OnEditcopy();
  45. afx_msg void OnUpdateEditcopy(CCmdUI* pCmdUI);
  46. afx_msg void OnUpdateEditpaste(CCmdUI* pCmdUI);
  47. afx_msg void OnEditundo();
  48. afx_msg void OnUpdateEditundo(CCmdUI* pCmdUI);
  49. afx_msg void OnEditredo();
  50. afx_msg void OnUpdateEditredo(CCmdUI* pCmdUI);
  51. afx_msg void OnEditselectall();
  52. afx_msg void OnEditrepeat();
  53. afx_msg void OnEditrepeatnext();
  54. afx_msg void OnUpdateEditrepeat(CCmdUI* pCmdUI);
  55. afx_msg void OnUpdateEditrepeatnext(CCmdUI* pCmdUI);
  56. afx_msg void OnViewFont();
  57. afx_msg void OnFileOpen();
  58. afx_msg void OnEditTrimtraillingspace();
  59. afx_msg void OnEditTrimtraillingtab();
  60. afx_msg void OnEditTabtospace();
  61. afx_msg void OnEditSpacetotab();
  62. afx_msg void OnEditLeadingspacetotab();
  63. afx_msg void OnEditMoveright();
  64. afx_msg void OnEditUncomment();
  65. afx_msg void OnEditMoveleft();
  66. afx_msg void OnEditComment();
  67. afx_msg void OnEditLcase();
  68. afx_msg void OnEditUcase();
  69. afx_msg void OnEditInvert();
  70. afx_msg void OnEditCapitalize();
  71. afx_msg void OnEditSentancecase();
  72. afx_msg void OnUpdateEditLcase(CCmdUI* pCmdUI);
  73. afx_msg void OnUpdateEditInvert(CCmdUI* pCmdUI);
  74. afx_msg void OnUpdateEditSentancecase(CCmdUI* pCmdUI);
  75. afx_msg void OnUpdateEditUcase(CCmdUI* pCmdUI);
  76. afx_msg void OnFileNew();
  77. afx_msg void OnFileSaveAs();
  78. afx_msg void OnFilesave();
  79. afx_msg void OnUpdateEditCapitalize(CCmdUI* pCmdUI);
  80. afx_msg void OnClose();
  81. //}}AFX_MSG
  82. DECLARE_MESSAGE_MAP()
  83. private:
  84. int LoadToolbarCombo();
  85. CString GetFileContext(CString strfile);
  86. void SaveTheContext();
  87. };
  88. /////////////////////////////////////////////////////////////////////////////
  89. //{{AFX_INSERT_LOCATION}}
  90. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  91. #endif // !defined(AFX_MAINFRM_H__85B70812_749B_45EA_BDB9_C5EEB31DD1C8__INCLUDED_)