2024-12-21 10:04:04 +08:00
|
|
|
|
// WorldMaxUserDlg.cpp : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
#include "ServiceManagerEx.h"
|
|
|
|
|
|
#include "WorldMaxUserDlg.h"
|
|
|
|
|
|
|
|
|
|
|
|
// CWorldMaxUserDlg <20><>ȭ <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
|
|
|
|
|
|
|
|
|
|
|
IMPLEMENT_DYNAMIC(CWorldMaxUserDlg, CDialog)
|
|
|
|
|
|
|
|
|
|
|
|
CWorldMaxUserDlg::CWorldMaxUserDlg(CWnd* pParent /*=NULL*/)
|
|
|
|
|
|
: CDialog(CWorldMaxUserDlg::IDD, pParent), m_MaxUser(0)
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CWorldMaxUserDlg::~CWorldMaxUserDlg()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CWorldMaxUserDlg::DoDataExchange(CDataExchange* pDX)
|
|
|
|
|
|
{
|
|
|
|
|
|
CDialog::DoDataExchange(pDX);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CWorldMaxUserDlg, CDialog)
|
|
|
|
|
|
ON_BN_CLICKED(IDOK, &CWorldMaxUserDlg::OnBnClickedOk)
|
|
|
|
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
|
|
|
|
|
|
void CWorldMaxUserDlg::OnBnClickedOk()
|
|
|
|
|
|
{
|
|
|
|
|
|
// TODO: <20><><EFBFBD> <20><>Ʈ<EFBFBD><C6AE> <20>˸<EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20>ڵ带 <20>߰<EFBFBD><DFB0>մϴ<D5B4>.
|
|
|
|
|
|
m_MaxUser = GetDlgItemInt(IDC_EDIT_WORLD_MAX_USER);
|
|
|
|
|
|
|
|
|
|
|
|
wchar_t msg[256];
|
|
|
|
|
|
::wsprintf(msg, L"Are you sure to set world max user? [users : %d]", m_MaxUser);
|
|
|
|
|
|
|
|
|
|
|
|
if (IDYES != ::AfxMessageBox(msg, MB_YESNO))
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
OnOK();
|
|
|
|
|
|
}
|