📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__F2B73829_3453_11D3_96EA_00A0C948983E__INCLUDED_)
#define AFX_MAINFRM_H__F2B73829_3453_11D3_96EA_00A0C948983E__INCLUDED_
//#include "ListenSocket.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CDatawriteTread;
struct Data_01
{
int command;
int lane;
int hour;
int min;
int sec;
int year;
int month;
int day;
//wangyu
CString bfh ;//2
CString gonghao ;//8
CString chexing ;//2
CString Feie ;//4
CString piaohao ;//10
CString gongban ;//2
CString xuliehao ;//15
//wangyu
BOOL BTopRed;
BOOL BTopGreen;
BOOL BLaneRed;
BOOL BLaneGreen;
BOOL BBarUp;
BOOL BBarDown;
BOOL BLoop;
BOOL BBAK1;
BOOL BBAK2;
BOOL BBAK3;
char name[20];
char statu[4];
};
struct Data_Name
{
int m_nGreade;
int m_nManNo;
CString m_sManName;
CString m_sPassword;
int m_nWork_Class;
};
struct Data_Fee
{
CString m_KIND;
long m_ID;
long m_FEE;
long m_TYPEID;
};
struct Data_Use
{
int command;
int property;
int lane;
LONG man_NO;
char name[20];
int vehcile_type;
int ticket_NO;
int fee;
int year;
int month;
int day;
int hour;
int min;
int sec;
int work_class;
int type;//机判车型
char statu[4];
// COleDateTime passtime;
CTime passtime;
_int64 record_ID;
int password;
};
/*
命令说明:
m_nCommand = 0 无按键
m_nCommand = 1 车型键
m_nCommand = 2 取消键
m_nCommand = 3 上班键
m_nCommand = 4 确认键
m_nCommand = 5 下班键
m_nCommand = 6 刷卡键
*/
class CNetComThread;
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)
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
CDatawriteTread *m_pDatawrite;
// CListenSocket * m_pListenSocket;
CNetComThread * m_pNetManger;
BOOL m_bFullScreen;
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:
CRect m_FullScreenRect;
WINDOWPLACEMENT m_OldWndpl;
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
afx_msg void OnTimer(UINT nIDEvent);
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__F2B73829_3453_11D3_96EA_00A0C948983E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -