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

📄 servertoolview.h

📁 墨香最新私服
💻 H
字号:
// ServerToolView.h : interface of the CServerToolView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SERVERTOOLVIEW_H__FC61667A_7DCE_440B_A72D_800AB1ADFD7F__INCLUDED_)
#define AFX_SERVERTOOLVIEW_H__FC61667A_7DCE_440B_A72D_800AB1ADFD7F__INCLUDED_

//#include "ReservationDlg.h"	// Added by ClassView

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

#include "MyEdit.h"
#include "NotifyDlg.h"	// Added by ClassView
#include "NotifyMessage.h"	// Added by ClassView
#include "LoginDlg.h"	// Added by ClassView
#include "MsgBoxOptionDlg.h"	// Added by ClassView

class CMSInfoDlg;
class CUserCount;

class CServerToolView : public CFormView
{
protected: // create from serialization only
	CServerToolView();
	DECLARE_DYNCREATE(CServerToolView)

public:
	//{{AFX_DATA(CServerToolView)
	enum { IDD = IDD_SERVERTOOL_FORM };
	CButton	m_btnMsgOption;
	CButton	m_btnUserCount;
	CButton	m_btnTServer;
	CButton	m_btnVersionChange;
	CButton	m_btnMaxUserChange;
	CEdit	m_editMaxUser;
	CEdit	m_editVersion;
	CButton	m_btnUserOut;
	CButton	m_btnServerRefresh;
	CButton	m_btnServerOff;
	CButton	m_btnServerOn;
	CComboBox	m_cbUserLevel;
	CButton	m_btnChangeUserLevel;
	CButton	m_btnAutoPatch;
	CEdit	m_editRepeatNum;
	CButton	m_btnNotifyEdit;
	CButton	m_btnNotify;
	CButton	m_stTotal;
	CListCtrl	m_lcTotal;
	CComboBox	m_cbServerSet;
	CString		m_strCurTime;
	CListCtrl	m_lcDist;
	CListCtrl	m_lcAgent;
	CListCtrl	m_lcMurim;
	CListCtrl	m_lcMap;
	CButton		m_stDist;
	CButton		m_stAgent;
	CButton		m_stMurim;
	CButton		m_stEtc;
	CButton		m_stMap;
	CComboBox	m_cbCmdServerSet;
	CMyEdit		m_MessageEdit;
	CEdit		m_RepeatEdit;
	CString	m_strCurFileName;
	CString	m_stNotify;
	CString	m_stUserCount;
	//}}AFX_DATA

// Attributes
public:
// 葛崔府胶 措拳惑磊 庆歹巩力肺 瘤框....
//	CServerToolDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CServerToolView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
	
	void OnRdblClickServerList(CListCtrl* pListCtrl,WORD ServerKind);
	void OnDblClickServerList(CListCtrl* pListCtrl,WORD ServerKind);
	void OnClickServerList(CListCtrl* pListCtrl,WORD ServerKind);
public:
	CMsgBoxOptionDlg m_MsgBoxOption;
	CFont		m_Font;
	CUserCount*	m_pUserCountDlg;
	CMSInfoDlg*	m_pMSInfoDlg;
	CLoginDlg	m_LoginDlg;
	CString		m_strDir;

	DWORD		m_AutoPatchTime;
	CBitmap		m_bmpGreen;
	CBitmap		m_bmpGray;
	CNotifyMessage	m_NotifyMessage;
	CNotifyDlg	m_NotifyDlg;	
	CImageList	m_StateImageList;

	int			m_nToolLevel;		// 荤侩 啊瓷 饭骇
	CString		m_strMessage;		// 傍瘤 荤亲 message
	BOOL		m_bNotify;
	int			m_nRepeatNum;
	int			m_nRepeatTime;
	int			m_nCheckTime;	
	
	BOOL		m_bReconnect;
	CString		m_strAutoPatch;	
	DWORD		m_dwServerOffTime;
	DWORD		m_dwDisconNum;	
	WORD		m_wRefreshTime;
	WORD		m_wWriteCountTime;
	BOOL		m_bServerOff;
	int			m_nKill;
	
	BOOL	Init();
	void	InitServerControl();
	void	InitServerMonitor();
	void	InitCommand();

	void	UpdateServerControl();
	void	UpdateUserCount();
	void	UpdateServerMonitor();
	void	UpdateCommand();

	void	EnableServerControl( BOOL bShow );
	void	EnableServerMonitor( BOOL bShow );
	void	EnableCommand( BOOL bShow );
	void	EnableToolFromLevel( int nUserLevel );
	void	ShowServerMonitor( BOOL bShow );

	void	ReadIniFile( char* filename );
	void	ReConnectToMAS();
		
	// network
	void	NetworkMsgParse( int ServerSet, BYTE Category, BYTE Protocol, void* pMsg );
	void	SetServerState( int setindex, SERVERSTATE* pstate );	
	void	NetworkQueryVersion( int setindex, char* version );
	void	NetworkChangeVersion( int setindex, char* version );
	void	NetworkQueryMaxUser( int setindex, DWORD maxuser );
	void	NetworkChangeMaxUser( int setindex, DWORD maxuser );
	void	NetworkUserLevel( int setindex, DWORD userlevel );
	void	NetworkAllUserDisconnect( int setindex, SERVERSTATE* pstate );
	void	Disconnect( int serverset );

	virtual ~CServerToolView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CServerToolView)
	afx_msg void OnSelchangeComboServerset();
	afx_msg void OnButtonServerOn();
	afx_msg void OnButtonServerOff();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnChangeEditMessage();
	afx_msg void OnButtonCommandSend();
	afx_msg void OnDblclkListcontrolDist(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDblclkListcontrolAgent(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDblclkListcontrolMap(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDblclkListcontrolMurim(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnRdblclkListcontrolMap(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnRdblclkListcontrolDist(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnRdblclkListcontrolAgent(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnRdblclkListcontrolMurim(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnButtonNotifyEdit();
	afx_msg void OnButtonNotify();
	afx_msg void OnDestroy();
	afx_msg void OnButtonServerRefresh();
	afx_msg void OnButtonAutopatch();
	afx_msg void OnFileMasOpen();
	afx_msg void OnButtonUserlevel();
	afx_msg void OnButtonMsgbox();
	afx_msg void OnButtonOffmsgbox();
	afx_msg void OnButtonOnmsgbox();
	afx_msg void OnButtonServerUserout();
	afx_msg void OnButtonVersionChange();
	afx_msg void OnButtonMaxuserChange();
	afx_msg void OnButtonUsercount();
	afx_msg void OnClickListcontrolDist(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnClickListcontrolAgent(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnClickListcontrolMap(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnButtonTerminateserver();
	afx_msg void OnButtonOption();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};



#ifndef _DEBUG  // debug version in ServerToolView.cpp
inline CServerToolDoc* CServerToolView::GetDocument()
   { return (CServerToolDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_SERVERTOOLVIEW_H__FC61667A_7DCE_440B_A72D_800AB1ADFD7F__INCLUDED_)

⌨️ 快捷键说明

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