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:
119
Server/ToolProject/GameDBTool/UserSearch.cpp
Normal file
119
Server/ToolProject/GameDBTool/UserSearch.cpp
Normal file
@@ -0,0 +1,119 @@
|
||||
// UserSearch.cpp : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "GameDBTool.h"
|
||||
#include "UserSearch.h"
|
||||
|
||||
#include "GameDBTool.h"
|
||||
#include "GameDBToolDlg.h"
|
||||
#include ".\usersearch.h"
|
||||
|
||||
// CUserSearch <20><>ȭ <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
|
||||
IMPLEMENT_DYNAMIC(CUserSearch, CDialog)
|
||||
CUserSearch::CUserSearch(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CUserSearch::IDD, pParent)
|
||||
, m_UID(_T(""))
|
||||
{
|
||||
}
|
||||
|
||||
CUserSearch::~CUserSearch()
|
||||
{
|
||||
}
|
||||
|
||||
void CUserSearch::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
DDX_Text(pDX, IDC_UID, m_UID);
|
||||
DDX_Control(pDX, IDC_SEARCH_TYPE, m_SearchType);
|
||||
DDX_Control(pDX, IDC_ALIGN_TYPE, m_AlignType);
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CUserSearch, CDialog)
|
||||
ON_BN_CLICKED(IDC_SEARCH, OnBnClickedSearch)
|
||||
ON_WM_CTLCOLOR()
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
||||
// CUserSearch <20><EFBFBD><DEBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
|
||||
void CUserSearch::OnBnClickedSearch()
|
||||
{
|
||||
CGameDBToolApp* pAppWnd = (CGameDBToolApp*)AfxGetApp();
|
||||
CGameDBToolDlg* pDlgWnd = (CGameDBToolDlg*)pAppWnd->m_pMainWnd;
|
||||
|
||||
UpdateData();
|
||||
|
||||
int CurSel = m_SearchType.GetCurSel();
|
||||
if(CB_ERR == CurSel)
|
||||
return;
|
||||
|
||||
CGameDBToolDlg::AlignType AlignType = (m_AlignType.GetCurSel() == 0) ? CGameDBToolDlg::AlignType::ASC : CGameDBToolDlg::AlignType::DESC;
|
||||
|
||||
switch(CurSel)
|
||||
{
|
||||
case 0: // <20><><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD>
|
||||
pDlgWnd->SetSearch(CGameDBToolDlg::SearchType::UID, m_UID.GetBuffer(0));
|
||||
pDlgWnd->SetAlign(AlignType, "UID");
|
||||
break;
|
||||
|
||||
case 1: // ij<><C4B3><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD><CCB5><EFBFBD><EFBFBD><EFBFBD>
|
||||
pDlgWnd->SetSearch(CGameDBToolDlg::SearchType::UIDBelow, m_UID.GetBuffer(0));
|
||||
pDlgWnd->SetAlign(AlignType, "UID");
|
||||
break;
|
||||
|
||||
case 2: // ij<><C4B3><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD><CCB5>̻<EFBFBD>
|
||||
pDlgWnd->SetSearch(CGameDBToolDlg::SearchType::UIDAbove, m_UID.GetBuffer(0));
|
||||
pDlgWnd->SetAlign(AlignType, "UID");
|
||||
break;
|
||||
}
|
||||
|
||||
CDialog::OnOK();
|
||||
}
|
||||
|
||||
BOOL CUserSearch::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
// TODO: <20><><EFBFBD> <20>߰<EFBFBD> <20>ʱ<EFBFBD>ȭ <20>۾<EFBFBD><DBBE><EFBFBD> <20>߰<EFBFBD><DFB0>մϴ<D5B4>.
|
||||
m_SearchType.InsertString(0, "UID");
|
||||
m_SearchType.InsertString(1, "Under Inputed UID");
|
||||
m_SearchType.InsertString(2, "Over Inputed UID");
|
||||
m_SearchType.SetCurSel(0);
|
||||
|
||||
m_AlignType.InsertString(0, "Descending Series");
|
||||
m_AlignType.InsertString(1, "Ascending Series");
|
||||
m_AlignType.SetCurSel(0);
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// <20><><EFBFBD><EFBFBD>: OCX <20>Ӽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> FALSE<53><45> <20><>ȯ<EFBFBD>ؾ<EFBFBD> <20>մϴ<D5B4>.
|
||||
}
|
||||
|
||||
HBRUSH CUserSearch::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
|
||||
{
|
||||
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
|
||||
|
||||
// TODO: <20><><EFBFBD>⼭ DC<44><43> Ư<><C6AF><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
|
||||
HBRUSH m_hBrush;
|
||||
|
||||
m_hBrush = CreateSolidBrush(RGB( 255, 169, 128));
|
||||
|
||||
switch( nCtlColor ){
|
||||
case CTLCOLOR_DLG:
|
||||
pDC->SetBkColor(RGB( 255, 255, 255));
|
||||
pDC->SetTextColor(RGB( 0, 0, 0));
|
||||
return m_hBrush;
|
||||
break;
|
||||
case CTLCOLOR_STATIC:
|
||||
pDC->SetBkColor(RGB( 255, 169, 128));
|
||||
pDC->SetTextColor(RGB( 0, 0, 0));
|
||||
return m_hBrush;
|
||||
break;
|
||||
default:
|
||||
return hbr;
|
||||
break;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user