📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__5AAA7CA2_1932_4F0E_A6F7_D269ED7BF782__INCLUDED_)
#define AFX_MAINFRM_H__5AAA7CA2_1932_4F0E_A6F7_D269ED7BF782__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DbParser.h"
extern HCURSOR g_hCSBusy;
extern HCURSOR g_hCSNormal;
extern bool g_bModifyed;
class CNavigator;
class CBackDropView;
class CAliEditorView;
class CSwitchView;
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
CSplitterWnd m_split;
CString m_strFilePathName;
CString m_strFileExtName;
CDbParser m_dbParser;
int m_com_port;
int m_bits_rate;
int m_data_parity;
int m_data_bits;
int m_stop_bits;
BOOL m_bDownLoadDdb;
BOOL m_bDownLoadUdb;
// Operations
public:
CNavigator *GetNavigator();
//CBackDropView *GetBackDropView();
CAliEditorView *GetEditorView();
CSwitchView *GetSwitchView();
BOOL SaveFile(CString &strFilePathName);
void CloseFile();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnFileOpen();
afx_msg void OnUpdateAliCloseFile(CCmdUI* pCmdUI);
afx_msg void OnAliCloseFile();
afx_msg void OnUpdateAliFileSave(CCmdUI* pCmdUI);
afx_msg void OnAliFileSave();
afx_msg void OnUpdateAliFileSaveAs(CCmdUI* pCmdUI);
afx_msg void OnAliFileSaveAs();
afx_msg void OnUpdateDataDownload(CCmdUI* pCmdUI);
afx_msg void OnDataDownload();
afx_msg void OnUpdateDataUpload(CCmdUI* pCmdUI);
afx_msg void OnDataUpload();
afx_msg void OnUpdateOtherBinDownload(CCmdUI* pCmdUI);
afx_msg void OnOtherBinDownload();
afx_msg void OnSerialPort();
afx_msg void OnDownloadSetting();
afx_msg void OnDestroy();
//}}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__5AAA7CA2_1932_4F0E_A6F7_D269ED7BF782__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -