Files
Client/Server/AdminTool/AdminToolClient/CharInfoTime.cpp
LGram16 dd97ddec92 Restructure repository to include all source folders
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>
2025-11-29 20:17:20 +09:00

124 lines
3.3 KiB
C++

// CharInfoTime.cpp : 구현 파일입니다.
//
#include "stdafx.h"
#include "AdminToolClient.h"
#include "CharInfoTime.h"
#include ".\charinfotime.h"
#include "PacketManager.h"
#include "GlobalFunctions.h"
#include "WindowMgr.h"
#include "CharacterDoc.h"
// CCharInfoTime 대화 상자입니다.
IMPLEMENT_DYNAMIC(CCharInfoTime, CDialog)
CCharInfoTime::CCharInfoTime(CWnd* pParent /*=NULL*/)
: CDialog(CCharInfoTime::IDD, pParent)
, m_szSearchValue(_T(""))
, m_szCreateTime(_T(""))
, m_szUpdateTime(_T(""))
{
}
CCharInfoTime::~CCharInfoTime()
{
}
void CCharInfoTime::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_BM_TYPECOMBO, m_ctrlSearchConditionCb);
DDX_Control(pDX, IDC_BM_SERVERCOMBO, m_ctrlServerGroupCb);
DDX_Text(pDX, IDC_SEARCHVALUE, m_szSearchValue);
DDX_Text(pDX, IDC_RESULTCREATETIME, m_szCreateTime);
DDX_Text(pDX, IDC_RESULTUPDATETIME, m_szUpdateTime);
}
BEGIN_MESSAGE_MAP(CCharInfoTime, CDialog)
ON_BN_CLICKED(IDC_CMDSEARCH, OnBnClickedCmdsearch)
ON_WM_DESTROY()
END_MESSAGE_MAP()
// CCharInfoTime 메시지 처리기입니다.
BOOL CCharInfoTime::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: 여기에 추가 초기화 작업을 추가합니다.
m_ctrlSearchConditionCb.InsertString(0, _T("CID"));
m_ctrlSearchConditionCb.InsertString(1, _T("Name"));
ServerGroupComboSet(m_ctrlServerGroupCb);
SetWindowText(static_cast<LPCTSTR>(GetLocalString("ADDED_STRING_099")));
SetUIString(this->m_hWnd, IDC_CHARINFOTIME_001, "ADDED_STRING_100");
SetUIString(this->m_hWnd, IDC_CHARINFOTIME_002, "ADDED_STRING_101");
SetUIString(this->m_hWnd, IDC_CHARINFOTIME_003, "ADDED_STRING_102");
SetUIString(this->m_hWnd, IDC_CMDSEARCH, "ADDED_STRING_103");
SetUIString(this->m_hWnd, IDC_CHARINFOTIME_004, "ADDED_STRING_104");
SetUIString(this->m_hWnd, IDC_CHARINFOTIME_005, "ADDED_STRING_105");
SetUIString(this->m_hWnd, IDC_CHARINFOTIME_006, "ADDED_STRING_106");
INSERT_WINDOW(IDD_CHARINFOTIMEDLG, this);
return TRUE; // return TRUE unless you set the focus to a control
// 예외: OCX 속성 페이지는 FALSE를 반환해야 합니다.
}
void CCharInfoTime::OnBnClickedCmdsearch()
{
// TODO: 여기에 컨트롤 알림 처리기 코드를 추가합니다.
UpdateData(TRUE);
unsigned char SearchType = static_cast<unsigned char>(m_ctrlSearchConditionCb.GetCurSel());
unsigned long ServerGroup = 0;
CString strServerName;
m_ctrlServerGroupCb.GetLBText(m_ctrlServerGroupCb.GetCurSel(), strServerName);
CCharacterDoc::GetInstance().GetServerIndex(strServerName, ServerGroup);
// 검색 종류가 아무것도 선택되지 않았음.
if(0xFF == SearchType)
{
MessageBox(GetLocalString("ADDED_STRING_111"), "Notifiacation", MB_ICONINFORMATION);
return;
}
// 서버 그룹이 아무것도 선택되지 않았음.
if(CB_ERR == ServerGroup)
{
MessageBox(GetLocalString("ADDED_STRING_112"), "Notification", MB_ICONINFORMATION);
return;
}
// 검색 값을 입력하지 않았음.
if(0 == m_szSearchValue.GetLength())
{
MessageBox(GetLocalString("ADDED_STRING_113"), "Notification", MB_ICONINFORMATION);
return;
}
m_szCreateTime.Empty();
m_szUpdateTime.Empty();
UpdateData(FALSE);
if(FALSE == CPacketMgr::GetInstance()->SendSearchCharInfoTime(SearchType, ServerGroup, m_szSearchValue))
{
Report(GetLocalString("ADDED_STRING_109"), FAILED);
}
}
void CCharInfoTime::OnDestroy()
{
CDialog::OnDestroy();
// TODO: 여기에 메시지 처리기 코드를 추가합니다.
ERASE_WINDOW(IDD_CHARINFOTIMEDLG);
}