// CharPropertySheet.cpp : ±¸Çö ÆÄÀÏÀÔ´Ï´Ù. // #include "stdafx.h" #include "AdminToolClient.h" #include "CharPropertySheet.h" #include "PacketManager.h" #include // CCharPropertySheet IMPLEMENT_DYNAMIC(CCharPropertySheet, CPropertySheet) CCharPropertySheet::CCharPropertySheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage) :CPropertySheet(nIDCaption, pParentWnd, iSelectPage) , m_lpModifyCharInfo(NULL) , m_dwDocKey(0) { AddPage(&m_wndCharStatusPage); AddPage(&m_wndCharInventoryPage); AddPage(&m_wndCharItemStorePage); AddPage(&m_wndCharSkillPage); AddPage(&m_wndCharSocietyPage); AddPage(&m_wndCharQuestPage); AddPage(&m_wndCharTempInvenPage); AddPage(&m_wndCharExtraItemPage); AddPage(&m_wndCharEXInfoPage); } CCharPropertySheet::CCharPropertySheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage) :CPropertySheet(pszCaption, pParentWnd, iSelectPage) , m_lpModifyCharInfo(NULL) , m_dwDocKey(0) { AddPage(&m_wndCharStatusPage); AddPage(&m_wndCharInventoryPage); AddPage(&m_wndCharItemStorePage); AddPage(&m_wndCharSkillPage); AddPage(&m_wndCharSocietyPage); AddPage(&m_wndCharQuestPage); AddPage(&m_wndCharTempInvenPage); AddPage(&m_wndCharExtraItemPage); AddPage(&m_wndCharEXInfoPage); } CCharPropertySheet::~CCharPropertySheet() { if(NULL != m_lpModifyCharInfo && (m_dwDocKey != 0)) { // ij¸¯ÅÍ ½ÃÆ® ºä°¡ ¾ø¾îÁú¶§ ¼±ÅÃµÇ ÀÖ´ø ij¸¯ÅÍ µ¶Á¡±Ç ÇØÁ¦ CPacketMgr::GetInstance()->SendCloseCharacter( m_lpModifyCharInfo->GetServerGroup(), m_lpModifyCharInfo->GetCID(), m_dwDocKey); } } BEGIN_MESSAGE_MAP(CCharPropertySheet, CPropertySheet) END_MESSAGE_MAP() // CCharPropertySheet ¸Þ½ÃÁö 󸮱âÀÔ´Ï´Ù. BOOL CCharPropertySheet::OnInitDialog() { BOOL bResult = CPropertySheet::OnInitDialog(); SetActivePage(&m_wndCharTempInvenPage); SetActivePage(&m_wndCharInventoryPage); SetActivePage(&m_wndCharItemStorePage); SetActivePage(&m_wndCharSkillPage); SetActivePage(&m_wndCharSocietyPage); SetActivePage(&m_wndCharQuestPage); SetActivePage(&m_wndCharEXInfoPage); SetActivePage(&m_wndCharExtraItemPage); SetActivePage(&m_wndCharStatusPage); return bResult; } bool CCharPropertySheet::SetAllPage( unsigned int dwDocKey, CModifyCharacter* lpModifyCharInfo ) { m_lpModifyCharInfo = lpModifyCharInfo; m_dwDocKey = dwDocKey; // °¢ ÆäÀÌÁö¿¡ ¼±ÅÃµÈ Ä³¸¯ÅÍ Á¤º¸ ¼ÂÆÃ m_wndCharStatusPage.SetStatusPageData (dwDocKey, lpModifyCharInfo); // ½ºÅ×ÀÌÅͽº ÆäÀÌÁö m_wndCharInventoryPage.SetInventoryPageData (dwDocKey, lpModifyCharInfo); // Àκ¥Å丮 ÆäÀÌÁö m_wndCharItemStorePage.SetStorePageData (dwDocKey, lpModifyCharInfo); // â°í ÆäÀÌÁö m_wndCharSkillPage.SetSkillPageData (dwDocKey, lpModifyCharInfo); // ½ºÅ³ ÆäÀÌÁö m_wndCharSocietyPage.SetSocietyPageData (dwDocKey, lpModifyCharInfo); // »çȸâ ÆäÀÌÁö m_wndCharQuestPage.SetQuestPageData (dwDocKey, lpModifyCharInfo); // Äù½ºÆ® ÆäÀÌÁö m_wndCharTempInvenPage.SetTempInvenPageData (dwDocKey, lpModifyCharInfo); // Àӽà Àκ¥ Á¤º¸ ÆäÀÌÁö m_wndCharExtraItemPage.SetExtraItemPageData (dwDocKey, lpModifyCharInfo); // ±âŸ ¾ÆÀÌÅÛ °ø°£ ÆäÀÌÁö m_wndCharEXInfoPage.SetCharEXInfoPageData (dwDocKey, lpModifyCharInfo); // ±âŸ Á¤º¸ ÆäÀÌÁö // °¢ ÆäÀÌÁö¿¡ Á¤º¸ °»½Å m_wndCharStatusPage.SetStatusPage (lpModifyCharInfo); m_wndCharInventoryPage.SetInventoryPage (lpModifyCharInfo); m_wndCharItemStorePage.SetStorePage (lpModifyCharInfo); m_wndCharSkillPage.SetSkillPage (lpModifyCharInfo); m_wndCharSocietyPage.SetSocietyPage (lpModifyCharInfo); m_wndCharQuestPage.SetQuestPage (lpModifyCharInfo); m_wndCharEXInfoPage.SetCharEXInfoPage (lpModifyCharInfo); m_wndCharTempInvenPage.SetTempInvenPage (lpModifyCharInfo); m_wndCharExtraItemPage.SetExtraItemPage (lpModifyCharInfo); return true; } void CCharPropertySheet::PostNcDestroy() { CPropertySheet::PostNcDestroy(); }