⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mugongsuryundialog.cpp

📁 墨香最新私服
💻 CPP
字号:
// MugongSuryunDialog.cpp: implementation of the CMugongSuryunDialog class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "MugongSuryunDialog.h"
#include "MugongDialog.h"
#include "SuryunDialog.h"

#include "GameIn.h"
#include "MainBarDialog.h"

#include "cMsgBox.h"
#include "WindowIDEnum.h"
#include "./Interface/cWindowManager.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CMugongSuryunDialog::CMugongSuryunDialog()
{
	m_type = WT_MUGONGSURYUNDIALOG;	
	m_pMugongDlg = NULL;
	m_pSuryunDlg = NULL;
}

CMugongSuryunDialog::~CMugongSuryunDialog()
{

}

void CMugongSuryunDialog::Add(cWindow * window)
{
	if(window->GetType() == WT_MUGONGDIALOG)
		m_pMugongDlg = (CMugongDialog*)window;
	else if(window->GetType() == WT_MUGONGDIALOG)
		m_pSuryunDlg = (CSuryunDialog*)window;


	if(window->GetType() == WT_PUSHUPBUTTON)
		AddTabBtn(curIdx1++, (cPushupButton * )window);
	else if(window->GetType() == WT_MUGONGDIALOG ||
		window->GetType() == WT_SURYUNDIALOG )
	
	{
		AddTabSheet(curIdx2++, window);
	}
	else 
		cDialog::Add(window);
}

void CMugongSuryunDialog::OnActionEvent(LONG lId, void * p, DWORD we)
{
	
}

BOOL CMugongSuryunDialog::FakeMoveIcon(LONG x, LONG y, cIcon * icon)
{
	return m_pMugongDlg->FakeMoveIcon(x,y,icon);
}

void CMugongSuryunDialog::SetActive( BOOL val )
{
	if(!val)
	{
		cMsgBox* pMsgBox = (cMsgBox*)WINDOWMGR->GetWindowForID(MBI_MUGONGDELETE);
		if(pMsgBox)
			WINDOWMGR->AddListDestroyWindow(pMsgBox);
		
		SetDisable(FALSE);
	}

	cTabDialog::SetActive( val );
	
//--- main bar icon
//	CMainBarDialog* pDlg = GAMEIN->GetMainInterfaceDialog();
//	if( pDlg )
//		pDlg->SetPushBarIcon( OPT_MUGONGDLGICON, m_bActive );
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -