ekdoclist.h

来自「< MFC经典问答>>是微软类库经常遇到的问题」· C头文件 代码 · 共 41 行

H
41
字号
// EkDocList.h : header file
//

#ifndef __EKDOCLIST_H__
#define __EKDOCLIST_H__

#include <afxtempl.h>	// For CTypedPtrList template

///////////////////////////////////////////////////////////
// CEkDocList : enumerator class for the document objects
//            in an MDI application

class CEkDocList
{
public:
	// Constuction - Destruction
	CEkDocList();	// The constructor fills our internal
					// list of pointer to document objects

	~CEkDocList();

	// Operations
	CDocument* GetNextDoc();  // Gets next document object

	// Forbid copy and assignment of CEkDocList objects
private:
	CEkDocList( const CEkDocList& );
	const CEkDocList& operator = ( const CEkDocList& );

private:
	// Implementation

	// Internal list of pointers to document objects
	CTypedPtrList< CObList, CDocument* > m_DocList;

	// Current position in the above list
	POSITION m_posDocList;
};

#endif   // __EKDOCLIST_H__

⌨️ 快捷键说明

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