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>
This commit is contained in:
94
Server/AdminTool/AdminToolClient/ExitToolDlg.cpp
Normal file
94
Server/AdminTool/AdminToolClient/ExitToolDlg.cpp
Normal file
@@ -0,0 +1,94 @@
|
||||
// ExitToolDlg.cpp : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "AdminToolClient.h"
|
||||
#include "ExitToolDlg.h"
|
||||
#include "PacketManager.h"
|
||||
#include "GlobalFunctions.h"
|
||||
|
||||
|
||||
// CExitToolDlg <20><>ȭ <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
|
||||
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 <20><EFBFBD><DEBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
|
||||
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); // <20>ٷ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϸ<EFBFBD> <20><>Ŷ<EFBFBD><C5B6> <20><><EFBFBD>۵<EFBFBD><DBB5><EFBFBD> <20><><EFBFBD><EFBFBD>;
|
||||
|
||||
EndDialog(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
AfxMessageBox(GetLocalString("MSG_0099"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user