// WorldMaxUserDlg.cpp : ±¸Çö ÆÄÀÏÀÔ´Ï´Ù. // #include "stdafx.h" #include "ServiceManagerEx.h" #include "WorldMaxUserDlg.h" // CWorldMaxUserDlg ´ëÈ­ »óÀÚÀÔ´Ï´Ù. 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: ¿©±â¿¡ ÄÁÆ®·Ñ ¾Ë¸² 󸮱â Äڵ带 Ãß°¡ÇÕ´Ï´Ù. 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(); }