ngdocenum.h

来自「ResOrg 图形化管理Vc项目的资源ID的工具的源代码。 ResOrg - 」· C头文件 代码 · 共 23 行

H
23
字号
////////////////////////////////////////////////////////////////
// CNGDocEnumerator Copyright 1995 Microsoft Systems Journal. 
//
// CNGDocEnumerator Enumerates all the documents in an application.
// See ENUMDOC.CPP for an example of how to use it.

class NGLIB_EXT_CLASS CNGDocEnumerator {
private:
#if (_MFC_VER >= 0x0400)
	CDocManager*	m_pDocManager;		// MFC 4.0+ uses doc manager
#else
   CPtrList*      m_pTemplateList;  // list of CDocTemplate's
#endif
   POSITION       m_posNextTemplate;// current POSITION in above
   CDocTemplate*  m_pDocTemplate;   // current document template
   POSITION       m_posNextDoc;     // current POSITION in above
public:
   CNGDocEnumerator();
   void Rewind();
   CDocument* GetNextDoc();
   CDocument* operator() ()         { return GetNextDoc(); }
};

⌨️ 快捷键说明

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