📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__D4AB6744_3799_4EA3_9A51_D99D7581384E__INCLUDED_)
#define AFX_MAINFRM_H__D4AB6744_3799_4EA3_9A51_D99D7581384E__INCLUDED_
#include "ListenSocket.h" // Added by ClassView
#include "Windows.h"
#include "winuser.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DlgBar.h"
#include "DaoRecord.h"
#include "SwitchComDlg.h"
#include "RecMsg.h"
#include "DaoPayProperty.h"
#include "DaoLeaguer.h"
#include "LeaguerManageDlg.h"
#include "FoodManageDlg.h"
#include "DaoSaledFood.h"
#include "HistoryFreeDlg.h"
#include "DaoLeaguer.h"
class CCommSocket;
class CListenSocket;
class CUnlockDeskWindow;
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
BOOL CreateToolBar();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
CPtrList m_commSocketList;
CListenSocket * m_pListenSocket;
CDlgBar m_wndDlgBar;
CReBar m_wndReBar;
CMenuEx m_menu;
CCommSocket *m_pCommsocket;
CDaoPayProperty m_daoPayProperty;
CString ServerIP;
// Operations
public:
int m_IdleMin;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
void OutOfMoneyCheckOut(int iNum);
void LimitLockClient(int nNum);
void CloseHistoryFreewindow();
void CloseFoodWindow();
void CloseLeaguerWindow();
void OnViewMessage();
void SetStatusText();
void CountIntervals();
int nNormal_intervals;
int nLeaguer_intervals;
CString ConvertString(int ntemp);
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;
CSocket m_sockBroadcast;
SMessage m_Msg;
CLeaguerManageDlg* LeaguerModelessDlg;
CFoodManageDlg* FoodModelessDlg;
CHistoryFreeDlg* HistoryFreedlg;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnStartTiming();
afx_msg void OnViewStyle();
afx_msg void OnViewBigIcon();
afx_msg void OnViewDetail();
afx_msg void OnViewList();
afx_msg void OnViewSmallIcon();
afx_msg void OnViewMessageDlg();
afx_msg void OnUpdateViewMessageDlg(CCmdUI* pCmdUI);
afx_msg void OnDlgbarPrompt();
afx_msg void OnDlgbarTree();
afx_msg void OnLockClient();
afx_msg void OnCheckOut();
afx_msg void OnSwitchClient();
afx_msg void OnUnlockClient();
afx_msg LRESULT OnStartWork(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnTimeReport(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnReceiveMsg(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnLeaguerCheckOut(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnSendLeaguerInformation(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnAcceptClientConfirmInformation(WPARAM wParam, LPARAM lParam);
afx_msg void OnReset();
afx_msg void OnShutdown();
afx_msg void OnLockDeskwindow();
afx_msg void OnSetPay();
afx_msg void OnSendMessage();
afx_msg void OnManageFood();
afx_msg void OnAppExit();
afx_msg void OnSaleFood();
afx_msg void OnManageLeaguer();
afx_msg void OnAllNightWork();
afx_msg void OnSetPassword();
afx_msg void OnAutoLock();
afx_msg void OnHistoryFreeDisplay();
afx_msg void OnHelp();
afx_msg void OnClose();
//}}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__D4AB6744_3799_4EA3_9A51_D99D7581384E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -