ngmdichildwnd.cpp

来自「ResOrg 图形化管理Vc项目的资源ID的工具的源代码。 ResOrg - 」· C++ 代码 · 共 96 行

CPP
96
字号

// NGMDIChildWnd.cpp : implementation of the CNGMDIChildWnd class
//

#include "StdAfx.h"

#include "NGMDIChildWnd.h"


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


/////////////////////////////////////////////////////////////////////////////
// CNGMDIChildWnd

IMPLEMENT_DYNCREATE(CNGMDIChildWnd, CNGMDIChildWnd_BASE)

BEGIN_MESSAGE_MAP(CNGMDIChildWnd, CNGMDIChildWnd_BASE)
	//{{AFX_MSG_MAP(CNGMDIChildWnd)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// CNGMDIChildWnd construction/destruction

CNGMDIChildWnd::CNGMDIChildWnd(void)
{
	// TODO: add member initialization code here
	
}


CNGMDIChildWnd::~CNGMDIChildWnd(void)
{
}


BOOL CNGMDIChildWnd::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

//	cs.style = cs.style & ~(LONG)FWS_ADDTOTITLE;

	return CNGMDIChildWnd_BASE::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CNGMDIChildWnd diagnostics

#ifdef _DEBUG
void CNGMDIChildWnd::AssertValid(void) const
{
	CNGMDIChildWnd_BASE::AssertValid();
}

void CNGMDIChildWnd::Dump(CDumpContext& dc) const
{
	CNGMDIChildWnd_BASE::Dump(dc);
}

#endif //_DEBUG



/////////////////////////////////////////////////////////////////////////////
// CNGMDIChildWnd message handlers

/************************************************************************
 *	Make the first child window maximised by default
 *
 ************************************************************************/

void CNGMDIChildWnd::ActivateFrame(int nCmdShow) 
{
	if (GetMDIFrame()->MDIGetActive() == NULL)
	{
		nCmdShow = SW_SHOWMAXIMIZED;
	}
	CNGMDIChildWnd_BASE::ActivateFrame(nCmdShow);
}


BOOL CNGMDIChildWnd::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{
	return CNGMDIChildWnd_BASE::OnCreateClient(lpcs, pContext);
}



⌨️ 快捷键说明

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