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

📄 servergroupselectdlg.cpp

📁 墨香最新私服
💻 CPP
字号:
// ServerGroupSelectDlg.cpp : implementation file
//

#include "stdafx.h"
#include "corumautopatch.h"
#include "ServerGroupSelectDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CServerGroupSelectDlg dialog


CServerGroupSelectDlg::CServerGroupSelectDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CServerGroupSelectDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CServerGroupSelectDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CServerGroupSelectDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CServerGroupSelectDlg)
	DDX_Control(pDX, IDC_LISTSERVER, m_ListServer);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CServerGroupSelectDlg, CDialog)
	//{{AFX_MSG_MAP(CServerGroupSelectDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CServerGroupSelectDlg message handlers

void CServerGroupSelectDlg::OnOK() 
{
	// TODO: Add extra validation here
	m_ServerGroup = -1;
	for(int n=0;n<m_ListServer.GetCount();++n)
	{
		if(m_ListServer.GetSel(n) > 0)
			m_ServerGroup = n;
	}
	if(m_ServerGroup == -1)
	{
		MessageBox("Choose ServerGroup To Enter",0,0);
		return;
	}
	CDialog::OnOK();
}

LRESULT CServerGroupSelectDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) 
{
	// TODO: Add your specialized code here and/or call the base class
	
	return CDialog::WindowProc(message, wParam, lParam);
}

⌨️ 快捷键说明

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