readme.wzd

来自「The programs and applications on this di」· WZD 代码 · 共 45 行

WZD
45
字号
/////////////////////////////////////////////////////////////////////
// Example files.
/////////////////////////////////////////////////////////////////////

MDIClWnd.cpp -- a child class window that fills itself with a
MDIClWnd.h			stretched bitmap


/////////////////////////////////////////////////////////////////////
// Modify Mainframe Class.
/////////////////////////////////////////////////////////////////////

// 1) embed MDIClientWnd class in this class.
	CMDIClientWnd m_wndMDIClient;

// 2) subclass MDIClientWnd window in WM_CREATE handler
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CMDIFrameWnd::OnCreate(lpCreateStruct) == -1)
		return -1;

	// subclass our CMDIClientWnd class to MDIClient window
	if( !m_wndMDIClient.SubclassWindow( m_hWndMDIClient))
	{
		TRACE( " Failed to subclass MDI client window\n");
		return -1;
	}

	
// 3) use ClassWizard to add a WM_SIZE handler where you invalidate
// the MDIClientWnd window
void CMainFrame::OnSize(UINT nType, int cx, int cy) 
{
	CMDIFrameWnd::OnSize(nType, cx, cy);
	
	m_wndMDIClient.Invalidate();
}


/////////////////////////////////////////////////////////////////////
// From: Visual C++ MFC Programming by Example by John E. Swanke
// Copyright (C) 1999 jeswanke. All rights reserved.
/////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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