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

📄 set6frame.cpp

📁 一套故障诊断监测系统
💻 CPP
字号:
// Set6Frame.cpp : implementation file
//

#include "stdafx.h"
#include "CDMS.h"
#include "Set6Frame.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSet6Frame

IMPLEMENT_DYNCREATE(CSet6Frame, CMDIChildWnd)

CSet6Frame::CSet6Frame()
{
}

CSet6Frame::~CSet6Frame()
{
}


BEGIN_MESSAGE_MAP(CSet6Frame, CMDIChildWnd)
	//{{AFX_MSG_MAP(CSet6Frame)
	ON_WM_CREATE()
//	ON_WM_MDIACTIVATE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSet6Frame message handlers

BOOL CSet6Frame::PreCreateWindow(CREATESTRUCT& cs) 
{
	// TODO: Add your specialized code here and/or call the base class
	cs.style &= ~FWS_ADDTOTITLE;
	return CMDIChildWnd::PreCreateWindow(cs);
}
/*
void CSet6Frame::ActivateFrame(int nCmdShow) 
{
	// TODO: Add your specialized code here and/or call the base class
	
	CMDIChildWnd::ActivateFrame(nCmdShow);
}
*/
int CSet6Frame::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
	if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)
		return -1;
	
	// TODO: Add your specialized creation code here
/*
	//<-------------获取主框架指针------------->
	m_pMainFrame = (CMainFrame*)AfxGetMainWnd();
	if(m_pMainFrame == NULL)
		return FALSE;
	//<-------------获取主框架指针------------->

	m_pMainFrame->m_hChildFrameSet6 = this->m_hWnd;
*/
	//<-------------设置窗口标题------------->
	this->SetWindowText("6#机组");
	//<-------------设置窗口标题------------->
	
	return 0;
}
/*
LRESULT CSet6Frame::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) 
{
	// TODO: Add your specialized code here and/or call the base class
	switch(message)
	{
	case UM_ACTIVATE_FRAME6:
		this->ActivateFrame();
		break;

	}
	
	return CMDIChildWnd::WindowProc(message, wParam, lParam);
}

void CSet6Frame::OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd) 
{
	CMDIChildWnd::OnMDIActivate(bActivate, pActivateWnd, pDeactivateWnd);
	
	// TODO: Add your message handler code here
	if(bActivate)
	{
		m_pMainFrame->SetCurActiveFrame(FRAME_TYPE_SET6);//
	}	
}
*/

⌨️ 快捷键说明

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