📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__C5A66DC2_5871_44AD_96B1_12ADB54B8F17__INCLUDED_)
#define AFX_MAINFRM_H__C5A66DC2_5871_44AD_96B1_12ADB54B8F17__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Login.h"
#include "SplitterWindow.h"
#include "SMSListView.h"
#include "SMSTreeView.h"
#include "SMSFormView.h"
#include "COMSetting.h"
#include "ServeConter.h"
#ifndef NOTE_RESULT_STRUCT
#define NOTE_RESULT_STRUCT
struct Note
{
CTime time;//时间
CString phoneNumber;//号码
CString action; //动作
CString state;//状态
CString content;//内容
};
#endif
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
// Operations
public:
// 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 OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnOrderFormManager();
afx_msg void OnUserManager();
afx_msg void OnLogManager();
afx_msg void OnComSetting();
afx_msg void OnUpdateComConnection(CCmdUI* pCmdUI);
afx_msg void OnUpdateComDisconnection(CCmdUI* pCmdUI);
afx_msg void OnComConnection();
afx_msg void OnComDisconnection();
afx_msg void OnServeCenterSetting();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
afx_msg void OnShowNoteMessage(WPARAM wparam,LPARAM lparam);
DECLARE_MESSAGE_MAP()
public:
CSplitterWindow m_SplitterWnd1;
CSplitterWindow m_SplitterWnd2;
COrderFormManager m_OrderFormManager;
CUserManager m_UserManager;
CLogManager m_LogManager;
CCOMSetting m_COMSetting;
public:
std::vector<CString> InterceptSendNoteMessage(CString sourceStr,int InterceptNum,int strLength);
BOOL m_IsConnection; //判断串口是否加接
std::vector<Note> m_NoteList;
UINT m_timeID;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__C5A66DC2_5871_44AD_96B1_12ADB54B8F17__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -