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>
92 lines
1.9 KiB
C++
92 lines
1.9 KiB
C++
// ItemInfoPage.cpp : 구현 파일입니다.
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "GameLogAnalyzer.h"
|
|
#include "ItemInfoPage.h"
|
|
#include "PrintLog.h"
|
|
|
|
#include "GlobalFunctions.h"
|
|
#include ".\iteminfopage.h"
|
|
|
|
// CItemInfoPage 대화 상자입니다.
|
|
|
|
IMPLEMENT_DYNAMIC(CItemInfoPage, CPropertyPage)
|
|
CItemInfoPage::CItemInfoPage()
|
|
: CPropertyPage(CItemInfoPage::IDD)
|
|
, m_lpItemContainer(NULL) , m_dwDepositMoney(0)
|
|
{
|
|
}
|
|
|
|
CItemInfoPage::~CItemInfoPage()
|
|
{
|
|
}
|
|
|
|
void CItemInfoPage::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CPropertyPage::DoDataExchange(pDX);
|
|
DDX_Control(pDX, IDC_ITEM_LIST, m_ItemList);
|
|
DDX_Control(pDX, IDC_ITEMINFOEDIT, m_ItemInfo);
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CItemInfoPage, CPropertyPage)
|
|
ON_LBN_DBLCLK(IDC_ITEM_LIST, OnLbnDblclkItemList)
|
|
ON_BN_CLICKED(IDC_BUTTON1, OnBnClickedButton1)
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
bool CItemInfoPage::Initialize(Item::CItemContainer* lpItemContainer, unsigned long dwDepositMoney)
|
|
{
|
|
m_lpItemContainer = lpItemContainer;
|
|
m_dwDepositMoney = dwDepositMoney;
|
|
return true;
|
|
}
|
|
|
|
|
|
// CItemInfoPage 메시지 처리기입니다.
|
|
|
|
BOOL CItemInfoPage::OnInitDialog()
|
|
{
|
|
CPropertyPage::OnInitDialog();
|
|
|
|
m_Font.CreatePointFont(90, "굴림체");
|
|
SetFont(&m_Font);
|
|
|
|
m_ItemInfo.SetFont(&m_Font);
|
|
m_ItemList.SetFont(&m_Font);
|
|
|
|
if(m_lpItemContainer)
|
|
{
|
|
m_lpItemContainer->DumpItemInfo();
|
|
}
|
|
|
|
if(m_dwDepositMoney)
|
|
{
|
|
m_lpItemContainer->DumpMoneyInfo(m_dwDepositMoney);
|
|
}
|
|
|
|
UpdateData(false);
|
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
// 예외: OCX 속성 페이지는 FALSE를 반환해야 합니다.
|
|
}
|
|
|
|
void CItemInfoPage::OnLbnDblclkItemList()
|
|
{
|
|
int nIndex = m_ItemList.GetCurSel();
|
|
|
|
const Item::CItem* lpItem =
|
|
static_cast<const Item::CItem*>(m_ItemList.GetItemDataPtr(nIndex));
|
|
|
|
if(NULL != lpItem)
|
|
{
|
|
CString ItemData = GetMyINIString("STRING_FOR_LOCALIZE", "ITEM_DETAIL_INFO");
|
|
GAMELOG::DetailInfo::ShowItemInfo(ItemData, lpItem);
|
|
}
|
|
}
|
|
|
|
void CItemInfoPage::OnBnClickedButton1()
|
|
{
|
|
ClippingListBox(m_ItemList);
|
|
} |