📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__F9E8427C_16F5_4759_BBB3_82348E5E0235__INCLUDED_)
#define AFX_MAINFRM_H__F9E8427C_16F5_4759_BBB3_82348E5E0235__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "MyWndBar.h"
#include "NewClientWnd.h"
#include "ClientMainDoc.h"
class CMainFrame : public CMDIFrameWnd
{
DECLARE_DYNAMIC(CMainFrame)
public:
CMainFrame();
// Attributes
public:
//CClientMainDoc m_pFDoc;
//CClientMainDoc
//CDocument *m_pFDoc;
//CDocument *m_pSDoc;
CDocument *m_pDoc;
CFrameWnd *m_pFrame;
CString m_strBar[6];
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL PreTranslateMessage(MSG* pMsg);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
BOOL VerifyBarState(LPCTSTR lpszProfileName);
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
CMyWndBar m_wndCoolBar; //自定义的浮动窗口,用来容纳TreeCtrl控件
CTreeCtrl m_wndTree; //树状控件
CImageList m_imgList; //图形列表
CNewClientWnd m_wndNewClient; //定义新的窗体类,用来与MDI窗体建立联系
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnUpdateViewCoolBar(CCmdUI* pCmdUI);
afx_msg void OnViewCoolBar();
afx_msg void OnTreeClick(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnOperateSell();
afx_msg void OnOperateFinance();
afx_msg void OnOperateMaterial();
afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
afx_msg void OnCloseNow();
afx_msg void OnUpdateCloseNow(CCmdUI* pCmdUI);
afx_msg void OnCloseAll();
afx_msg void OnUpdateCloseAll(CCmdUI* pCmdUI);
afx_msg void OnOperateMbuy();
afx_msg void OnOperateMsell();
afx_msg void OnUserModify();
afx_msg void OnPswModify();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__F9E8427C_16F5_4759_BBB3_82348E5E0235__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -