readme.wzd

来自「《Visual C++ MFC编程实例》配套代码,如果大家正在学习此教程」· WZD 代码 · 共 23 行

WZD
23
字号
/////////////////////////////////////////////////////////////////////
// Modify any class with a window.
/////////////////////////////////////////////////////////////////////

// 1) embed any control class (CButton, CEdit, etc.) in the class
	CButton	m_ctrlButton;

// 2) in the WM_CREATE message handler of the class you want to add this control to
	// create button in view
	CRect rect(20,20,100,50);
	m_ctrlButton.Create("Wzd&1", WS_CHILD|WS_VISIBLE, rect, this, IDC_WZD_CONTROL );

// 3) give the control a 3D look (no boldface)
	CFont *pFont=CFont::FromHandle((HFONT)::GetStockObject(ANSI_VAR_FONT));
	m_ctrlButton.SetFont(pFont);


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

⌨️ 快捷键说明

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