readme.wzd

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

WZD
33
字号
/////////////////////////////////////////////////////////////////////
// Example files...
/////////////////////////////////////////////////////////////////////

WzdDrDlg.cpp -- CWzdDirDlg, a class that uses ::SHBrowseForFolder() to get a folder
WzdDrDlg.h

/////////////////////////////////////////////////////////////////////
// To use CWzdDirDlg...
/////////////////////////////////////////////////////////////////////

// 1) create instance and optionally initialize with a root directory to
// start with and/or a title:

	// get current working directory
	char buf[MAX_PATH];
	_getcwd(buf,MAX_PATH);

	CWzdDirDlg dlg;
	CString dir=dlg.GetDirectory(
			this,	// parent window
			buf,	// root directory
			"Title"	// optional title
			);



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