📄 set8frame.cpp
字号:
// Set8Frame.cpp : implementation file
//
#include "stdafx.h"
#include "CDMS.h"
#include "Set8Frame.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSet8Frame
IMPLEMENT_DYNCREATE(CSet8Frame, CMDIChildWnd)
CSet8Frame::CSet8Frame()
{
}
CSet8Frame::~CSet8Frame()
{
}
BEGIN_MESSAGE_MAP(CSet8Frame, CMDIChildWnd)
//{{AFX_MSG_MAP(CSet8Frame)
ON_WM_CREATE()
// ON_WM_MDIACTIVATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSet8Frame message handlers
BOOL CSet8Frame::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Add your specialized code here and/or call the base class
cs.style &= ~FWS_ADDTOTITLE;
return CMDIChildWnd::PreCreateWindow(cs);
}
int CSet8Frame::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_hChildFrameSet8 = this->m_hWnd;
*/
//<-------------设置窗口标题------------->
this->SetWindowText("8#机组");
//<-------------设置窗口标题------------->
return 0;
}
/*
LRESULT CSet8Frame::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
// TODO: Add your specialized code here and/or call the base class
switch(message)
{
case UM_ACTIVATE_FRAME8:
this->ActivateFrame();
break;
}
return CMDIChildWnd::WindowProc(message, wParam, lParam);
}
void CSet8Frame::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_SET8);//
}
}
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -