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:
105
Server/ToolProject/AuthDBManager/SearchDlg.cpp
Normal file
105
Server/ToolProject/AuthDBManager/SearchDlg.cpp
Normal file
@@ -0,0 +1,105 @@
|
||||
// SearchDlg.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "AuthDBManager.h"
|
||||
#include "SearchDlg.h"
|
||||
#include "AuthDBManagerDlg.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CSearchDlg dialog
|
||||
|
||||
|
||||
CSearchDlg::CSearchDlg(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CSearchDlg::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CSearchDlg)
|
||||
m_SearchText = _T("");
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void CSearchDlg::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CSearchDlg)
|
||||
DDX_Control(pDX, ID_SELECT_ALIGNTYPE, m_SelectAlignType);
|
||||
DDX_Control(pDX, ID_SELECT_ALIGN, m_SelectAlign);
|
||||
DDX_Control(pDX, ID_SELECT_SEARCH, m_SelectSearch);
|
||||
DDX_Text(pDX, ID_SEARCH_TEXT, m_SearchText);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CSearchDlg, CDialog)
|
||||
//{{AFX_MSG_MAP(CSearchDlg)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CSearchDlg message handlers
|
||||
|
||||
BOOL CSearchDlg::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
// TODO: Add extra initialization here
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
// TODO: Add extra initialization here
|
||||
CAuthDBManagerApp* pAppWnd = (CAuthDBManagerApp*)AfxGetApp();
|
||||
char FieldName[256];
|
||||
|
||||
m_SelectSearch.InsertString(0, "----------------");
|
||||
LoadString(pAppWnd->m_Language, IDS_F2, FieldName, 256);
|
||||
m_SelectSearch.InsertString(1, FieldName);
|
||||
LoadString(pAppWnd->m_Language, IDS_F4, FieldName, 256);
|
||||
m_SelectSearch.InsertString(2, FieldName);
|
||||
|
||||
m_SelectSearch.SetCurSel(0);
|
||||
|
||||
m_SelectAlign.InsertString(0, "----------------");
|
||||
LoadString(pAppWnd->m_Language, IDS_F1, FieldName, 256);
|
||||
m_SelectAlign.InsertString(1, FieldName);
|
||||
LoadString(pAppWnd->m_Language, IDS_F2, FieldName, 256);
|
||||
m_SelectAlign.InsertString(2, FieldName);
|
||||
LoadString(pAppWnd->m_Language, IDS_F4, FieldName, 256);
|
||||
m_SelectAlign.InsertString(3, FieldName);
|
||||
LoadString(pAppWnd->m_Language, IDS_F14, FieldName, 256);
|
||||
m_SelectAlign.InsertString(4, FieldName);
|
||||
|
||||
m_SelectAlign.SetCurSel(0);
|
||||
|
||||
LoadString(pAppWnd->m_Language, IDS_A1, FieldName, 256);
|
||||
m_SelectAlignType.InsertString(0, FieldName);
|
||||
LoadString(pAppWnd->m_Language, IDS_A2, FieldName, 256);
|
||||
m_SelectAlignType.InsertString(1, FieldName);
|
||||
|
||||
m_SelectAlignType.SetCurSel(0);
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
|
||||
void CSearchDlg::OnOK()
|
||||
{
|
||||
// TODO: Add extra validation here
|
||||
CAuthDBManagerApp* pAppWnd = (CAuthDBManagerApp*)AfxGetApp();
|
||||
CAuthDBManagerDlg* pDlgWnd = (CAuthDBManagerDlg*)pAppWnd->m_pMainWnd;
|
||||
|
||||
UpdateData();
|
||||
|
||||
pDlgWnd->m_SearchType = m_SelectSearch.GetCurSel();
|
||||
strcpy(pDlgWnd->m_Search, m_SearchText.GetBuffer(0));
|
||||
|
||||
pDlgWnd->m_Align = m_SelectAlign.GetCurSel();
|
||||
pDlgWnd->m_AlignType = m_SelectAlignType.GetCurSel();
|
||||
|
||||
CDialog::OnOK();
|
||||
}
|
||||
Reference in New Issue
Block a user