⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 server.h

📁 网吧管理系统VC源码
💻 H
字号:
// Server.h : main header file for the SERVER application
//

#if !defined(AFX_SERVER_H__1B5FF9ED_B3AE_487E_B77E_49A1B07CB800__INCLUDED_)
#define AFX_SERVER_H__1B5FF9ED_B3AE_487E_B77E_49A1B07CB800__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"      
#include "MenuEx.h"
/////////////////////////////////////////////////////////////////////////////
// CServerApp:
// See Server.cpp for the implementation of this class
//

#define WM_START_WORK  WM_USER + 100
#define WM_TIME_REPORT WM_USER + 101
#define WM_DISPLAY_MESSAGE  WM_USER + 102
#define WM_CALLBACK_MESSAGE WM_USER + 103
#define WM_LEAGUER_CHECK_OUT WM_USER + 104
#define WM_LEAGUER_INFORMATION WM_USER + 105
#define WM_CLIENT_CONFIRM  WM_USER + 106

//消息ID
enum MessageID { 
	             CLIENT_IP_SEND=0,
                 BROADCAST_SERVER_IP, 
                 CLIENT_START_WORK, 
				 CLIENT_TIME_REPORT, 
                 CLIENT_CARD_PASS,
				 CLIENT_ADMIN_PASS, 
                 CLIENT_LOCK, 
				 CLIENT_UNLOCK,
				 CLIENT_SHUTDOWN,
                 CLIENT_RESTART,
				 CLIENT_CARD_ERROR,
				 CLIENT_SEND_MESSAGE,
				 LEAGUER_CHECK_OUT,
				 LEAGUER_NOT_CHECK_OUT,
				 LEAGUER_INFORMATION,
				 LEAGUER_PAUSE,
				 LEAGUER_LOSS,
				 LEAGUER_OUT_DATE,
				 LEAGUER_NOT_MONEY,
				 LEAGUER_WORKING,
				 CLIENT_CONFIRM_INFORMATION
};


//会员状态
enum LeaguerStatus {
					NORMAL_STATUS = 0,
					PAUSE_STATUS = 1,
					LOSS_STATUS = 2
};


//消息结构
struct SMessage
{
	UINT IDCode;
	char str[256];
	char msgSend[256];
	char cardID[20];
	char cardPass[20];
};


class CServerApp : public CWinApp
{
public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	CServerApp();
	
	BOOL Register();
	BOOL AlreadyRunning();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CServerApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation
	//{{AFX_MSG(CServerApp)
	afx_msg void OnAppAbout();
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SERVER_H__1B5FF9ED_B3AE_487E_B77E_49A1B07CB800__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -