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

📄 mvpview.cpp

📁 MVP设计模式在vc下的构件
💻 CPP
字号:
// MVPView.cpp: implementation of the CMVPView class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "..\ImFusionS.h"
#include "..\MVP h\MVPView.h"
#include "..\MVP h\MVPPresenter.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CMVPView::CMVPView()
{
	m_PMVPModel=NULL;
	m_PMVPPresenter=NULL;
	m_PRealView=NULL;
	return;
}

CMVPView::~CMVPView()
{

}

void CMVPView::SetModelPresenter(CMVPModel *pModel, CMVPPresenter *pPresenter)
{
	m_PMVPModel=pModel;
	m_PMVPPresenter=pPresenter;
	return;
}

void CMVPView::NotifyEvent(int EventID, LPVOID LPdat)
{

}

void CMVPView::ReceiveEvent(int EventID, LPVOID LPdat)
{
	m_PMVPPresenter->OnEvent(EventID,LPdat);
	return;
}

⌨️ 快捷键说明

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