MainFrm.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MAINFRM_H__A2F7CE67_D58B_48EC_BDC8_F7C32BC788A6__INCLUDED_)
  5. #define AFX_MAINFRM_H__A2F7CE67_D58B_48EC_BDC8_F7C32BC788A6__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "DLineProperty.h"
  10. #include "StyleBar.h"
  11. #include"Resource.h"
  12. class CMainFrame : public CMDIFrameWnd
  13. {
  14. DECLARE_DYNAMIC(CMainFrame)
  15. public:
  16. CMainFrame();
  17. // Attributes
  18. public:
  19. // Operations
  20. public:
  21. // Overrides
  22. // ClassWizard generated virtual function overrides
  23. //{{AFX_VIRTUAL(CMainFrame)
  24. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  25. //}}AFX_VIRTUAL
  26. // Implementation
  27. public:
  28. virtual ~CMainFrame();
  29. #ifdef _DEBUG
  30. virtual void AssertValid() const;
  31. virtual void Dump(CDumpContext& dc) const;
  32. #endif
  33. protected: // control bar embedded members
  34. CStatusBar m_wndStatusBar;
  35. CToolBar m_wndToolBar;
  36. CToolBar m_wndDrawToolBar;
  37. public:
  38. CStyleBar m_wndStyleBar;
  39. public:
  40. void AddTempFile();
  41. void SetMousePosText(CPoint Logpoint,CPoint Devpoint);
  42. void ShowFontBar(BOOL isShow=true);
  43. CDLineProperty* m_DLineProperty;
  44. // Generated message map functions
  45. protected:
  46. //{{AFX_MSG(CMainFrame)
  47. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  48. afx_msg void OnShowPorDlg();
  49. afx_msg void OnUpdateShowPorDlg(CCmdUI* pCmdUI);
  50. afx_msg void OnShowDrawToolBar();
  51. afx_msg void OnUpdateShowDrawToolBar(CCmdUI* pCmdUI);
  52. afx_msg void OnTimer(UINT nIDEvent);
  53. //}}AFX_MSG
  54. afx_msg void OnUpdateMousPoint(CCmdUI* pCmdUI);
  55. afx_msg void OnUpdateMousCaption(CCmdUI* pCmdUI);
  56. DECLARE_MESSAGE_MAP()
  57. };
  58. /////////////////////////////////////////////////////////////////////////////
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  61. #endif // !defined(AFX_MAINFRM_H__A2F7CE67_D58B_48EC_BDC8_F7C32BC788A6__INCLUDED_)