// MainFrm.cpp : CMainFrame Ŭ·¡½ºÀÇ ±¸Çö // #include "stdafx.h" #include "AdminToolClient.h" #include "MainFrm.h" #include "GlobalFunctions.h" #include "ExitToolDlg.h" #include "PacketManager.h" #include "CharacterDoc.h" #include "CharRestoreDlg.h" #include "BlockManagementDlg.h" #include "ItemManageDlg.h" #include "ItemQuantityControlDlg.h" #include "InterestedUserDlg.h" #include "ConnectionInfoDlg.h" #include "GuildSearchDlg.h" #include "GuildRestoreDlg.h" #include "UserBillingLogDlg.h" #include "DuplicatedItemDlg.h" #include "UnifiedCharInfoDlg.h" #include "UnifiedGuildInfoDlg.h" #include "CharInfoTime.h" #include "FortInfoDlg.h" #include "CastleSearchDlg.h" #include ".\mainfrm.h" #ifdef _DEBUG #define new DEBUG_NEW #endif static UINT IID_CONNECTEDUSER_CHK = 1; void CALLBACK TimerProcess(HWND hWnd, UINT nMsg, UINT nTimerID, DWORD dwTime) { if(IID_CONNECTEDUSER_CHK == nTimerID) { if (g_bIsLogin) { CPacketMgr::GetInstance()->ReqConnectedUserList(); } } } // CMainFrame IMPLEMENT_DYNAMIC(CMainFrame, CMDIFrameWnd) BEGIN_MESSAGE_MAP(CMainFrame, CMDIFrameWnd) ON_WM_CREATE() ON_WM_SETCURSOR() ON_BN_CLICKED(IDC_CHARSEARCH, OnBnClickedCharsearch) ON_UPDATE_COMMAND_UI(ID_VIEW_ADMINSTOREBAR, OnUpdateViewAdminstorebar) ON_COMMAND(ID_VIEW_ADMINSTOREBAR, OnViewAdminstorebar) ON_UPDATE_COMMAND_UI(ID_VIEW_QUICKMENUBAR, OnUpdateViewQuickmenubar) ON_COMMAND(ID_VIEW_QUICKMENUBAR, OnViewQuickmenubar) ON_WM_RBUTTONDOWN() ON_COMMAND(ID_EDIT_PASTE, OnEditPaste) ON_COMMAND(ID_ITEMDROPCONTOROL, OnItemdropcontorol) ON_COMMAND(ID_USERBILLINGLOG, OnUserbillinglog) ON_BN_CLICKED(IDC_CONNECTALLSERVERZ_BTN, OnBnClickedConnectallserverzBtn) ON_COMMAND(ID_INTERESTEDUSER_MANAGE, OnInteresteduserManage) ON_BN_CLICKED(IDC_CONNECTIONCHK_BTN, OnBnClickedConnectionchkBtn) ON_LBN_DBLCLK(IDC_CONNECTEDUSER_LIST, OnLbnDblclkConnectedUserList) ON_COMMAND(ID_DUPLICATEDITEM, OnDuplicateditem) ON_COMMAND(ID_CREATEITEM, OnCreateitem) ON_COMMAND(ID_CANCELGRABITEM, OnCancelgrabitem) ON_COMMAND(ID_GUILDMANAGE, OnGuildmanage) ON_COMMAND(ID_UNIFIEDCHARINFO, OnUnifiedcharinfo) ON_COMMAND(ID_UNIFIEDGUILDINFO, OnUnifiedguildinfo) ON_COMMAND(ID_RESTOREGUILD, OnRestoreguild) ON_COMMAND(32997, On32997) ON_COMMAND(33002, OnCampInfo) ON_COMMAND(33004, OnCastleSearch) END_MESSAGE_MAP() static UINT indicators[] = { ID_SEPARATOR, // »óÅ Á٠ǥ½Ã±â ID_INDICATOR_CAPS, ID_INDICATOR_NUM, ID_INDICATOR_SCRL, }; // CMainFrame »ý¼º/¼Ò¸ê CMainFrame::CMainFrame() : m_bIsShowBottomBar(FALSE) , m_bIsShowRightBar(FALSE) // Ãʱ⼳Á¤: true => hide, false => show , m_bIsPushCtrl(false) { m_lpItemQtyControlDlg = NULL; } CMainFrame::~CMainFrame() { delete m_lpItemQtyControlDlg; } int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CMDIFrameWnd::OnCreate(lpCreateStruct) == -1) return -1; // edith 2008.07.12 °ü½ÉÀÖ´Â À¯Àú Á¤º¸Ã³¸®Çϱâ SetTimer(IID_CONNECTEDUSER_CHK, 5000, TimerProcess); // ¸Þ´º ·ÎÄöóÀÌ¡ CMenu *lpMainMenu, *lpSubMenu, *lpTempMenu; lpMainMenu = GetMenu(); if(NULL == lpMainMenu) { ERRLOG0(g_Log, "Menu init failed"); return -1; } lpMainMenu->ModifyMenu(0, MF_STRING | MF_BYPOSITION, NULL, GetLocalString("MENU_013")); lpMainMenu->ModifyMenu(1, MF_STRING | MF_BYPOSITION, NULL, GetLocalString("MENU_014")); lpMainMenu->ModifyMenu(2, MF_STRING | MF_BYPOSITION, NULL, GetLocalString("MENU_015")); lpSubMenu = lpMainMenu->GetSubMenu(0); if(NULL == lpSubMenu) { ERRLOG0(g_Log, "Menu init failed"); return -1; } lpSubMenu->ModifyMenu(0, MF_STRING | MF_BYPOSITION, 32868, GetLocalString("MENU_001")); lpSubMenu->ModifyMenu(1, MF_STRING | MF_BYPOSITION, 32903, GetLocalString("MENU_002")); lpSubMenu->ModifyMenu(2, MF_STRING | MF_BYPOSITION, 32997, GetLocalString("ADDED_STRING_110")); lpSubMenu->ModifyMenu(3, MF_STRING | MF_BYPOSITION, 32956, GetLocalString("MENU_004")); lpSubMenu->ModifyMenu(4, MF_STRING | MF_BYPOSITION, 32962, GetLocalString("MENU_005")); lpSubMenu->ModifyMenu(6, MF_STRING | MF_BYPOSITION, NULL, GetLocalString("ADDED_STRING_070")); lpSubMenu->ModifyMenu(7, MF_STRING | MF_BYPOSITION, NULL, GetLocalString("ADDED_STRING_071")); lpSubMenu->ModifyMenu(8, MF_STRING | MF_BYPOSITION, NULL, GetLocalString("ADDED_STRING_222")); lpSubMenu->ModifyMenu(10, MF_STRING | MF_BYPOSITION, NULL, GetLocalString("MENU_006")); lpSubMenu->ModifyMenu(12, MF_STRING | MF_BYPOSITION, NULL, GetLocalString("ADDED_STRING_072")); lpSubMenu->ModifyMenu(14, MF_STRING | MF_BYPOSITION, 57665, GetLocalString("MENU_009")); lpTempMenu = lpSubMenu->GetSubMenu(6); if(NULL == lpSubMenu) { ERRLOG0(g_Log, "Menu init failed"); return -1; } lpTempMenu->ModifyMenu(0, MF_STRING | MF_BYPOSITION, ID_CREATEITEM, GetLocalString("ADDED_STRING_073")); lpTempMenu->ModifyMenu(1, MF_STRING | MF_BYPOSITION, ID_CANCELGRABITEM, GetLocalString("ADDED_STRING_074")); lpTempMenu->ModifyMenu(2, MF_STRING | MF_BYPOSITION, ID_DUPLICATEDITEM, GetLocalString("ADDED_STRING_075")); lpTempMenu->ModifyMenu(3, MF_STRING | MF_BYPOSITION, 32953, GetLocalString("MENU_003")); lpTempMenu = lpSubMenu->GetSubMenu(7); if(NULL == lpSubMenu) { ERRLOG0(g_Log, "Menu init failed"); return -1; } lpTempMenu->ModifyMenu(0, MF_STRING | MF_BYPOSITION, ID_GUILDMANAGE, GetLocalString("ADDED_STRING_076")); lpTempMenu->ModifyMenu(1, MF_STRING | MF_BYPOSITION, 32988, GetLocalString("ADDED_STRING_077")); lpTempMenu->ModifyMenu(2, MF_STRING | MF_BYPOSITION, 33002, GetLocalString("ADDED_STRING_115")); lpTempMenu = lpSubMenu->GetSubMenu(8); if(NULL == lpSubMenu) { ERRLOG0(g_Log, "Menu init failed"); return -1; } lpTempMenu->ModifyMenu(0, MF_STRING | MF_BYPOSITION, 33004, GetLocalString("ADDED_STRING_223")); lpTempMenu = lpSubMenu->GetSubMenu(10); if(NULL == lpSubMenu) { ERRLOG0(g_Log, "Menu init failed"); return -1; } lpTempMenu->ModifyMenu(0, MF_STRING | MF_BYPOSITION, 32907, GetLocalString("MENU_007")); lpTempMenu->ModifyMenu(1, MF_STRING | MF_BYPOSITION, 32906, GetLocalString("MENU_008")); lpTempMenu = lpSubMenu->GetSubMenu(12); if(NULL == lpSubMenu) { ERRLOG0(g_Log, "Menu init failed"); return -1; } lpTempMenu->ModifyMenu(0, MF_STRING | MF_BYPOSITION, 32985, GetLocalString("ADDED_STRING_078")); lpTempMenu->ModifyMenu(1, MF_STRING | MF_BYPOSITION, 32986, GetLocalString("ADDED_STRING_079")); lpSubMenu = lpMainMenu->GetSubMenu(1); if(NULL == lpSubMenu) { ERRLOG0(g_Log, "Menu init failed"); return FALSE; } lpSubMenu->ModifyMenu(0, MF_STRING | MF_BYPOSITION, 59393, GetLocalString("MENU_010")); lpSubMenu->ModifyMenu(2, MF_STRING | MF_BYPOSITION, 32871, GetLocalString("MENU_011")); lpSubMenu->ModifyMenu(3, MF_STRING | MF_BYPOSITION, 32901, GetLocalString("MENU_012")); lpSubMenu = lpMainMenu->GetSubMenu(2); if (NULL == lpSubMenu) { ERRLOG0(g_Log, "Menu init failed"); return -1; } lpSubMenu->ModifyMenu(0, MF_STRING | MF_BYPOSITION, 57664, GetLocalString("ADDED_STRING_042")); /* (±âº» µµ±¸ ¸ðÀ½ »ý¼º) _________________________________________________________________________________________________ if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_wndToolBar.LoadToolBar(IDR_MAINFRAME)) { TRACE0(IDS_CODE_01); return -1; } m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY); EnableDocking(CBRS_ALIGN_ANY); DockControlBar(&m_wndToolBar); */ // (»óÅ ǥ½ÃÁÙ »ý¼º) if (!m_wndStatusBar.Create(this) || !m_wndStatusBar.SetIndicators(indicators, sizeof(indicators) / sizeof(UINT))) { CString strTxt = GetLocalString("MSG_0125"); return -1; } // (Äü ¸Þ´º) if (!m_wndQuickMenuDlgBar.Create(this, IDD_QUICKMENUDLGBAR, CBRS_RIGHT | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_HIDE_INPLACE, IDD_QUICKMENUDLGBAR)) { CString strTxt = GetLocalString("MSG_0126"); return -1; } // ¿©±â ÄÞº¸ À妽º´Â Çì´õ¿¡ Á¤ÀÇµÈ SEARCH_TYPE »ó¼ö¶û ÀÏÄ¡ÇØ¾ßÇÔ m_wndQuickMenuDlgBar.m_ctrlCharSearchCombo1.InsertString(0, GetLocalString("ACCOUNT")); m_wndQuickMenuDlgBar.m_ctrlCharSearchCombo1.InsertString(1, GetLocalString("CHAR_NAME")); m_wndQuickMenuDlgBar.m_ctrlCharSearchCombo1.InsertString(2, _T("UID")); m_wndQuickMenuDlgBar.m_ctrlCharSearchCombo1.InsertString(3, _T("CID")); m_wndQuickMenuDlgBar.m_ctrlCharSearchCombo1.SetCurSel(2); if (UnifiedConst::Part2Selectable == theApp.GetAgentType()) { m_wndQuickMenuDlgBar.GetDlgItem(IDC_OLD_SERVERID_EDIT)->EnableWindow(true); m_wndQuickMenuDlgBar.SetDlgItemInt(IDC_OLD_SERVERID_EDIT, 0); } this->OnViewQuickmenubar(); // (¿î¿µ â°í ´ÙÀ̾ó·Î±× ¹Ù) if (!m_wndAdminStoreDlgBar.Create(this, IDD_STATUS_DLGBAR, CBRS_BOTTOM | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_HIDE_INPLACE, IDD_STATUS_DLGBAR)) { CString strTxt = GetLocalString("MSG_0127"); return -1; } m_wndAdminStoreDlgBar.m_ctrlAdminStoreList.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES | LVS_EX_FLATSB); m_wndAdminStoreDlgBar.m_ctrlAdminStoreList.InsertColumn(0, _T("ID"), LVCFMT_LEFT, 60); m_wndAdminStoreDlgBar.m_ctrlAdminStoreList.InsertColumn(1, GetLocalString("SERVER_GROUP"), LVCFMT_LEFT, 100); m_wndAdminStoreDlgBar.m_ctrlAdminStoreList.InsertColumn(2, GetLocalString("OWNER_CHAR"), LVCFMT_LEFT, 130); m_wndAdminStoreDlgBar.m_ctrlAdminStoreList.InsertColumn(3, GetLocalString("ITEM_NAME"), LVCFMT_LEFT, 150); this->OnViewAdminstorebar(); // ÀÛ¾÷º¸°í ¸®½ºÆ® ¹Ú½º ÄÁÅØ½ºÆ® ¸Þ´º ¼ÂÆÃ m_wndAdminStoreDlgBar.m_ctrlWorkReportList.SetContextMenuId(IDR_XLISTBOX); return 0; } BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) { if(!CMDIFrameWnd::PreCreateWindow(cs)) { return FALSE; } // Àüü È­¸é cs.x, cs.y = 0; cs.cx = GetSystemMetrics(SM_CXSCREEN); cs.cy = GetSystemMetrics(SM_CYSCREEN); cs.style |= WS_MAXIMIZE; return CMDIFrameWnd::PreCreateWindow(cs); } // CMainFrame Áø´Ü #ifdef _DEBUG void CMainFrame::AssertValid() const { CMDIFrameWnd::AssertValid(); } void CMainFrame::Dump(CDumpContext& dc) const { CMDIFrameWnd::Dump(dc); } #endif //_DEBUG // CMainFrame ¸Þ½ÃÁö 󸮱â BOOL CMainFrame::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) { if(g_bItemGrab) { SetCursor(AfxGetApp()->LoadCursor(IDC_GRAB_CURSOR)); } else { SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW)); } return TRUE; } // Äü¸Þ´º¿¡¼­ °Ë»ö ¹öư Ŭ¸¯ void CMainFrame::OnBnClickedCharsearch() { CString strInputValue; CString strServerName; unsigned long dwServerGroup; m_wndQuickMenuDlgBar.GetDlgItemText(IDC_SEARCH_KEY, strInputValue); if (true == strInputValue.IsEmpty()) { Report(GetLocalString("MSG_0129"), CAUTION); return; } int nSearchType = m_wndQuickMenuDlgBar.m_ctrlCharSearchCombo1.GetCurSel(); int nServerCbIdx = m_wndQuickMenuDlgBar.m_ctrlCharSearchCombo2.GetCurSel(); if(CB_ERR != nServerCbIdx) { m_wndQuickMenuDlgBar.m_ctrlCharSearchCombo2.GetLBText(nServerCbIdx, strServerName); } if (false == CCharacterDoc::GetInstance().GetServerIndex(strServerName, dwServerGroup)) { if((SEARCH_CHARACTER == nSearchType) || (SEARCH_CID == nSearchType)) { Report(GetLocalString("MSG_0128"), FAILED); return; } } unsigned char cSearchType = 0; switch(nSearchType) { case SEARCH_ACCOUNT: cSearchType = PktAdminMgr::PktSearchName::Account; break; case SEARCH_CHARACTER: cSearchType = PktAdminMgr::PktSearchName::Character; break; case SEARCH_UID: cSearchType = PktAdminMgr::PktSearchID::SearchUID; break; case SEARCH_CID: cSearchType = PktAdminMgr::PktSearchID::SearchCID; break; } BOOL bError = FALSE; unsigned int nOldServerID = m_wndQuickMenuDlgBar.GetDlgItemInt(IDC_OLD_SERVERID_EDIT, &bError, FALSE); if (NULL == (&bError)) { Report(GetLocalString("ADDED_STRING_030"), CAUTION); return; } if((SEARCH_CHARACTER == nSearchType) || (SEARCH_ACCOUNT == nSearchType)) { if (UnifiedConst::Part2Selectable == theApp.GetAgentType()) { CPacketMgr::GetInstance()->SendSearchName(cSearchType, dwServerGroup, strInputValue, nOldServerID); } else { CPacketMgr::GetInstance()->SendSearchName(cSearchType, dwServerGroup, strInputValue); } } else if((SEARCH_UID == nSearchType) || (SEARCH_CID == nSearchType)) { if (UnifiedConst::Part2Selectable == theApp.GetAgentType()) { CPacketMgr::GetInstance()->SendSearchID(cSearchType, dwServerGroup, _ttoi(strInputValue), nOldServerID); } else { CPacketMgr::GetInstance()->SendSearchID(cSearchType, dwServerGroup, _ttoi(strInputValue)); } } } void CMainFrame::OnUpdateViewAdminstorebar(CCmdUI *pCmdUI) { pCmdUI->Enable(true); if(m_bIsShowBottomBar) { pCmdUI->SetCheck(1); } else { pCmdUI->SetCheck(0); } } void CMainFrame::OnUpdateViewQuickmenubar(CCmdUI *pCmdUI) { pCmdUI->Enable(true); if(m_bIsShowRightBar) { pCmdUI->SetCheck(1); } else { pCmdUI->SetCheck(0); } } // ¿î¿µ â°í ¹Ù º¸À̱â / ¼û±â±â void CMainFrame::OnViewAdminstorebar() { if(m_bIsShowBottomBar) { this->ShowControlBar(&m_wndAdminStoreDlgBar, FALSE, TRUE); m_bIsShowBottomBar = FALSE; } else if(!m_bIsShowBottomBar) { this->ShowControlBar(&m_wndAdminStoreDlgBar, TRUE, TRUE); m_bIsShowBottomBar = TRUE; } } // Äü¸Þ´º º¸À̱â / ¼û±â±â void CMainFrame::OnViewQuickmenubar() { if (m_bIsShowRightBar) { this->ShowControlBar(&m_wndQuickMenuDlgBar, FALSE, TRUE); m_bIsShowRightBar = FALSE; } else if(!m_bIsShowRightBar) { this->ShowControlBar(&m_wndQuickMenuDlgBar, TRUE, TRUE); m_bIsShowRightBar = TRUE; } } BOOL CMainFrame::DestroyWindow() { // ÀÎÁõÀ» Åë°úÇßÀ¸¸ç ¼­¹ö¿¡ ¿¬°áµÇ¾î ÀÖ´Ù¸é »ç¿ë»çÀ¯ ÀÛ¼º if(g_bIsLogin && ((CAdminToolClientApp*)AfxGetApp())->IsConnected()) { CExitToolDlg dlg; dlg.DoModal(); } return CMDIFrameWnd::DestroyWindow(); } BOOL CMainFrame::PreTranslateMessage(MSG* pMsg) { if ((WM_KEYDOWN == pMsg->message) && (VK_CONTROL == pMsg->wParam)) m_bIsPushCtrl = true; else if((WM_KEYUP == pMsg->message) && (VK_CONTROL == pMsg->wParam)) m_bIsPushCtrl = false; if (true == m_bIsPushCtrl) { if(WM_KEYDOWN == pMsg->message) { if('1' == pMsg->wParam) { OnViewQuickmenubar(); OnViewAdminstorebar(); } else if('2' == pMsg->wParam) { OnViewQuickmenubar(); } else if('3' == pMsg->wParam) { OnViewAdminstorebar(); } } } else { if((pMsg->message == WM_KEYDOWN) && (pMsg->wParam == VK_RETURN)) { if((pMsg->hwnd == m_wndQuickMenuDlgBar.GetDlgItem(IDC_SEARCH_KEY)->m_hWnd)) { OnBnClickedCharsearch(); } else if((pMsg->hwnd == m_wndQuickMenuDlgBar.GetDlgItem(IDC_CONNECTIONCHK_EDIT)->m_hWnd)) { OnBnClickedConnectionchkBtn(); } else if((pMsg->hwnd == m_wndQuickMenuDlgBar.GetDlgItem(IDC_Q_ACCOUNT_EDIT)->m_hWnd)) { char szAccount[PktAdminMgr::MAX_ACCOUNT]; m_wndQuickMenuDlgBar.GetDlgItemText(IDC_Q_ACCOUNT_EDIT, szAccount, PktAdminMgr::MAX_ACCOUNT); CPacketMgr::GetInstance()->SendPktShiftToUID( PktAdminMgr::PktShiftToUID::ACCOUNT_TO_UID, szAccount, 0); } else if((pMsg->hwnd == m_wndQuickMenuDlgBar.GetDlgItem(IDC_Q_UID_EDIT)->m_hWnd)) { unsigned long dwUID = m_wndQuickMenuDlgBar.GetDlgItemInt(IDC_Q_UID_EDIT, 0, FALSE); CPacketMgr::GetInstance()->SendPktShiftToUID( PktAdminMgr::PktShiftToUID::UID_TO_ACCOUNT, "", dwUID); } } } return CMDIFrameWnd::PreTranslateMessage(pMsg); } void CMainFrame::OnRButtonDown(UINT nFlags, CPoint point) { CMDIFrameWnd::OnRButtonDown(nFlags, point); } void CMainFrame::OnEditPaste() { if(GetFocus() == m_wndQuickMenuDlgBar.GetDlgItem(IDC_SEARCH_KEY)) { static_cast(m_wndQuickMenuDlgBar.GetDlgItem(IDC_SEARCH_KEY))->Paste(); } } void CMainFrame::OnItemdropcontorol() { /* if(NULL != m_lpItemQtyControlDlg) { m_lpItemQtyControlDlg->SetFocus(); } else { m_lpItemQtyControlDlg = new CItemQuantityControlDlg; m_lpItemQtyControlDlg->Create(IDD_ITEMQUANTITYCONTROLDLG, this); m_lpItemQtyControlDlg->ShowWindow(SW_SHOW); } */ } void CMainFrame::OnUserbillinglog() { CUserBillingLogDlg dlg; dlg.DoModal(); } void CMainFrame::OnBnClickedConnectallserverzBtn() { CPacketMgr::GetInstance()->SendConnectAllServerz(); } void CMainFrame::OnInteresteduserManage() { CInterestedUserDlg dlg; dlg.DoModal(); } void CMainFrame::OnBnClickedConnectionchkBtn() { TCHAR szAccount[PktAdminMgr::MAX_ACCOUNT]; if (0 != m_wndQuickMenuDlgBar.GetDlgItemText( IDC_CONNECTIONCHK_EDIT, szAccount, PktAdminMgr::MAX_ACCOUNT)) { CPacketMgr::GetInstance()->SendPktConnectionChk( PktAdminMgr::PktConnectionChk::REQUEST_CHK, szAccount); } } void CMainFrame::OnLbnDblclkConnectedUserList() { TCHAR szAccount[PktAdminMgr::MAX_ACCOUNT]; int nSelIndex = m_wndQuickMenuDlgBar.m_ctrlInterestedUserList.GetCurSel(); m_wndQuickMenuDlgBar.m_ctrlInterestedUserList.GetText(nSelIndex, szAccount); if (0 != szAccount) { CPacketMgr::GetInstance()->SendPktConnectionChk( PktAdminMgr::PktConnectionChk::REQUEST_CHK, szAccount); } } void CMainFrame::OnDuplicateditem() { CDuplicatedItemDlg dlg; dlg.DoModal(); } void CMainFrame::OnCreateitem() { if (true == g_bItemGrab) { Report(GetLocalString("MSG_0169"), CAUTION); } else { CItemManageDlg dlg(CItemManageDlg::CREATE); dlg.DoModal(); } } void CMainFrame::OnCancelgrabitem() { g_bItemGrab = false; m_wndAdminStoreDlgBar.UpdateData(false); } void CMainFrame::OnGuildmanage() { CGuildSearchDlg dlg; dlg.DoModal(); } void CMainFrame::OnUnifiedcharinfo() { CUnifiedCharInfoDlg dlg; dlg.DoModal(); } void CMainFrame::OnUnifiedguildinfo() { CUnifiedGuildInfoDlg dlg; dlg.DoModal(); } void CMainFrame::OnRestoreguild() { CGuildRestoreDlg dlg; dlg.DoModal(); } void CMainFrame::On32997() { // TODO: ¿©±â¿¡ ¸í·É 󸮱â Äڵ带 Ãß°¡ÇÕ´Ï´Ù. CCharInfoTime dlg; dlg.DoModal(); } void CMainFrame::OnCampInfo() { CFortInfoDlg dlg; dlg.DoModal(); } void CMainFrame::OnCastleSearch() { CCastleSearchDlg dlg; dlg.DoModal(); }