readme.wzd

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

WZD
31
字号
/////////////////////////////////////////////////////////////////////
// Example files...
/////////////////////////////////////////////////////////////////////

WzdBtmap.cpp -- a bitmap class that can load its image from the screen
WzdBtmap.h


/////////////////////////////////////////////////////////////////////
// Use Bitmap....
/////////////////////////////////////////////////////////////////////

// 1) Create a CRect variable with the dimension of the screen to capture:

	CWnd *pWnd=GetDesktopWindow();
	pWnd->GetWindowRect(&rect);

// 2) Use the CWzdBitmap class to capture the image:

	CWzdBitmap bitmap;
	bitmap.Capture(rect);

// 3) You can now display this bitmap as you would any other bitmap.


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