Initial commit: ROW Client source code
Game client codebase including: - CharacterActionControl: Character and creature management - GlobalScript: Network, items, skills, quests, utilities - RYLClient: Main client application with GUI and event handlers - Engine: 3D rendering engine (RYLGL) - MemoryManager: Custom memory allocation - Library: Third-party dependencies (DirectX, boost, etc.) - Tools: Development utilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
109
Tools/PatchMaker/PatchMakerSheet.cpp
Normal file
109
Tools/PatchMaker/PatchMakerSheet.cpp
Normal file
@@ -0,0 +1,109 @@
|
||||
// PatchMakerSheet.cpp : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "PatchMaker.h"
|
||||
#include "PatchMakerSheet.h"
|
||||
|
||||
// PatchMakerSheet
|
||||
|
||||
IMPLEMENT_DYNAMIC(CPatchMakerSheet, CPropertySheet)
|
||||
CPatchMakerSheet::CPatchMakerSheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
|
||||
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
CPatchMakerSheet::CPatchMakerSheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
|
||||
:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
CPatchMakerSheet::~CPatchMakerSheet()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
BEGIN_MESSAGE_MAP(CPatchMakerSheet, CPropertySheet)
|
||||
ON_WM_CREATE()
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
||||
// PatchMakerSheet <20><EFBFBD><DEBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
|
||||
BOOL CPatchMakerSheet::OnInitDialog()
|
||||
{
|
||||
BOOL bResult = CPropertySheet::OnInitDialog();
|
||||
|
||||
// TODO: <20><><EFBFBD> Ư<><C6AF>ȭ<EFBFBD><C8AD> <20>ڵ带 <20>߰<EFBFBD><DFB0>մϴ<D5B4>.
|
||||
|
||||
// <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
int ids[] = { IDOK, IDCANCEL, IDHELP, ID_APPLY_NOW };
|
||||
CRect rcButton;
|
||||
|
||||
for (int i = 0; i < sizeof(ids)/sizeof(int); i++)
|
||||
{
|
||||
CWnd* lpWnd = GetDlgItem(ids[i]);
|
||||
if (lpWnd)
|
||||
{
|
||||
lpWnd->GetWindowRect(&rcButton);
|
||||
lpWnd->ShowWindow(FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
int nEditWidthMargin = 20;
|
||||
int nEditHeightMargin = 20;
|
||||
int nEditHeight = 80;
|
||||
|
||||
CRect rect;
|
||||
GetWindowRect(&rect);
|
||||
rect.bottom += nEditHeight - rcButton.Height() + nEditHeightMargin / 2;
|
||||
MoveWindow(rect);
|
||||
|
||||
GetClientRect (&rect);
|
||||
|
||||
// <20><><EFBFBD><EFBFBD> <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ٴڿ<D9B4> <20><><EFBFBD>δ<EFBFBD>.
|
||||
int nX = rect.left + nEditWidthMargin / 2;
|
||||
int nY = rect.bottom - nEditHeight - nEditHeightMargin / 2;
|
||||
int nEditWidth = rect.Width() - nEditWidthMargin;
|
||||
|
||||
m_edLogMsg.CreateEx (WS_EX_CLIENTEDGE, _T("EDIT"), NULL,
|
||||
WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | ES_MULTILINE | ES_AUTOVSCROLL,
|
||||
nX, nY, nEditWidth, nEditHeight, m_hWnd, 0, 0 );
|
||||
|
||||
m_edLogMsg.SetFont(GetFont());
|
||||
|
||||
const int nMaxPageCount = GetPageCount();
|
||||
for(int nIndex = 0; nIndex < nMaxPageCount; ++nIndex)
|
||||
{
|
||||
// <20>ѹ<EFBFBD><D1B9><EFBFBD> Active<76><65> <20>ؼ<EFBFBD>, Page<67><65> OnInitDialog<6F><67> ȣ<><C8A3><EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD> <20>Ѵ<EFBFBD>.
|
||||
SetActivePage(nIndex);
|
||||
}
|
||||
|
||||
SetActivePage(0);
|
||||
return bResult;
|
||||
}
|
||||
|
||||
|
||||
int CPatchMakerSheet::OnCreate(LPCREATESTRUCT lpCreateStruct)
|
||||
{
|
||||
if (CPropertySheet::OnCreate(lpCreateStruct) == -1)
|
||||
return -1;
|
||||
|
||||
// TODO: <20><><EFBFBD> Ư<><C6AF>ȭ<EFBFBD><C8AD> <20>ۼ<EFBFBD> <20>ڵ带 <20>߰<EFBFBD><DFB0>մϴ<D5B4>.
|
||||
ModifyStyle(0, WS_MINIMIZEBOX);
|
||||
return 0;
|
||||
}
|
||||
|
||||
BOOL CPatchMakerSheet::OnCommand(WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
// TODO: <20><><EFBFBD> Ư<><C6AF>ȭ<EFBFBD><C8AD> <20>ڵ带 <20>߰<EFBFBD> <20><>/<2F>Ǵ<EFBFBD> <20>⺻ Ŭ<><C5AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ȣ<><C8A3><EFBFBD>մϴ<D5B4>.
|
||||
if (LOWORD(wParam) == IDOK)
|
||||
{
|
||||
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ȸ<C8B8> <20><>.
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return CPropertySheet::OnCommand(wParam, lParam);
|
||||
}
|
||||
Reference in New Issue
Block a user