readme.wzd

来自「MFC扩展编程实例」· WZD 代码 · 共 47 行

WZD
47
字号
/////////////////////////////////////////////////////////////////////
// Example files.
/////////////////////////////////////////////////////////////////////

WzdTView.cpp -- a tabbed form view class
WzdTView.h

PageOne.cpp -- sample property page classes in tabbed form
PageOne.h
PageTwo.cpp
PageTwo.h

/////////////////////////////////////////////////////////////////////
// Modify the Application Class.
/////////////////////////////////////////////////////////////////////

// 1) add new view class to document template
	CMultiDocTemplate* pDocTemplate;
	pDocTemplate = new CMultiDocTemplate(
		IDR_WZDTYPE,
		RUNTIME_CLASS(CWzdDoc),
		RUNTIME_CLASS(CChildFrame), 
		RUNTIME_CLASS(CWzdTabbedView));<<<<<<<<
	AddDocTemplate(pDocTemplate);

/////////////////////////////////////////////////////////////////////
// Modify the Frame Class (Mainframe or Childframe).
/////////////////////////////////////////////////////////////////////

// 1) make frame static
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
	// removes min/max boxes
	cs.style &= ~(WS_MAXIMIZEBOX|WS_MINIMIZEBOX);

	// makes dialog box unsizable
	cs.style &= ~WS_THICKFRAME;

	return CMDIChildWnd::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////
// 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 + -
显示快捷键?