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>
94 lines
1.7 KiB
C++
94 lines
1.7 KiB
C++
// ExitToolDlg.cpp : 구현 파일입니다.
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "AdminToolClient.h"
|
|
#include "ExitToolDlg.h"
|
|
#include "PacketManager.h"
|
|
#include "GlobalFunctions.h"
|
|
|
|
|
|
// CExitToolDlg 대화 상자입니다.
|
|
|
|
IMPLEMENT_DYNAMIC(CExitToolDlg, CDialog)
|
|
CExitToolDlg::CExitToolDlg(CWnd* pParent /*=NULL*/)
|
|
: CDialog(CExitToolDlg::IDD, pParent)
|
|
{
|
|
}
|
|
|
|
CExitToolDlg::~CExitToolDlg()
|
|
{
|
|
}
|
|
|
|
void CExitToolDlg::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CExitToolDlg, CDialog)
|
|
ON_WM_CTLCOLOR()
|
|
ON_BN_CLICKED(ID_QUIT, OnQuitBtn)
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
// CExitToolDlg 메시지 처리기입니다.
|
|
|
|
HBRUSH CExitToolDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
|
|
{
|
|
return CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
|
|
}
|
|
|
|
BOOL CExitToolDlg::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
|
|
SetWindowText(GetLocalString("IDD_EXITTOOLDLG"));
|
|
|
|
SetUIString(this->m_hWnd, IDC_EXIT_01, "IDC_EXIT_01");
|
|
SetUIString(this->m_hWnd, IDC_EXIT_02, "IDC_EXIT_02");
|
|
SetUIString(this->m_hWnd, ID_QUIT, "ID_QUIT");
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
void CExitToolDlg::OnOK()
|
|
{
|
|
}
|
|
|
|
void CExitToolDlg::OnCancel()
|
|
{
|
|
}
|
|
|
|
BOOL CExitToolDlg::PreTranslateMessage(MSG* pMsg)
|
|
{
|
|
return CDialog::PreTranslateMessage(pMsg);
|
|
}
|
|
|
|
void CExitToolDlg::OnToolExit(CString szText)
|
|
{
|
|
EndDialog(true);
|
|
}
|
|
|
|
void CExitToolDlg::OnQuitBtn()
|
|
{
|
|
UpdateData(true);
|
|
|
|
CString szText;
|
|
GetDlgItemText(IDC_EXITLOG, szText);
|
|
|
|
if((0 < szText.GetLength()) || (100 > szText.GetLength()))
|
|
{
|
|
CPacketMgr::GetInstance()->SendPktSetZoneList();
|
|
CPacketMgr::GetInstance()->SendExitLog(szText);
|
|
GetDlgItem(ID_QUIT)->EnableWindow(false);
|
|
|
|
Sleep(500); // 바로 종료하면 패킷이 전송되지 않음;
|
|
|
|
EndDialog(true);
|
|
}
|
|
else
|
|
{
|
|
AfxMessageBox(GetLocalString("MSG_0099"));
|
|
}
|
|
} |