Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
74 lines
1.8 KiB
C++
74 lines
1.8 KiB
C++
// ConnectionInfoDlg.cpp : 구현 파일입니다.
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "AdminToolClient.h"
|
|
#include "ConnectionInfoDlg.h"
|
|
#include "CharacterDoc.h"
|
|
#include "GlobalFunctions.h"
|
|
|
|
|
|
// CConnectionInfoDlg 대화 상자입니다.
|
|
|
|
IMPLEMENT_DYNAMIC(CConnectionInfoDlg, CDialog)
|
|
CConnectionInfoDlg::CConnectionInfoDlg(PktAdminMgr::PktConnectionChk* lpInfo, CWnd* pParent /*=NULL*/)
|
|
: CDialog(CConnectionInfoDlg::IDD, pParent)
|
|
, m_lpConnectionInfo(lpInfo)
|
|
{
|
|
}
|
|
|
|
CConnectionInfoDlg::~CConnectionInfoDlg()
|
|
{
|
|
}
|
|
|
|
void CConnectionInfoDlg::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CConnectionInfoDlg, CDialog)
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
// CConnectionInfoDlg 메시지 처리기입니다.
|
|
|
|
BOOL CConnectionInfoDlg::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
|
|
if (NULL != m_lpConnectionInfo)
|
|
{
|
|
CString strFormat;
|
|
|
|
strFormat.Format(_T("%s"), m_lpConnectionInfo->m_szAccount);
|
|
SetDlgItemText(IDC_CI_ACCOUNT_EDIT, strFormat);
|
|
|
|
strFormat.Format(_T("%u"), m_lpConnectionInfo->m_dwUID);
|
|
SetDlgItemText(IDC_CI_UID_EDIT, strFormat);
|
|
|
|
if(CCharacterDoc::GetInstance().GetServerName(m_lpConnectionInfo->m_nServerGroup, strFormat))
|
|
{
|
|
SetDlgItemText(IDC_CI_SERVERGROUP_EDIT, strFormat);
|
|
}
|
|
else
|
|
{
|
|
strFormat.Format(_T("UNKNOWN (%u)"), m_lpConnectionInfo->m_nServerGroup);
|
|
SetDlgItemText(IDC_CI_SERVERGROUP_EDIT, strFormat);
|
|
}
|
|
|
|
strFormat.Format(_T("%s"), m_lpConnectionInfo->m_szLoginTime);
|
|
SetDlgItemText(IDC_CI_LOGINTIME_EDIT, strFormat);
|
|
|
|
strFormat.Format(_T("%s"), m_lpConnectionInfo->m_szLoginIP);
|
|
SetDlgItemText(IDC_CI_IP_EDIT, strFormat);
|
|
}
|
|
|
|
SetWindowText(GetLocalString("IDD_CONNECTIONINFODLG"));
|
|
|
|
SetUIString(this->m_hWnd, IDC_CONNINFO_01, "IDC_CONNINFO_01");
|
|
SetUIString(this->m_hWnd, IDC_CONNINFO_02, "IDC_CONNINFO_02");
|
|
SetUIString(this->m_hWnd, IDC_CONNINFO_04, "IDC_CONNINFO_04");
|
|
|
|
return TRUE;
|
|
} |