docmgrex.h

来自「版本更新了一下」· C头文件 代码 · 共 27 行

H
27
字号
////////////////////////////////////////////////////////////////
// MSDN -- August 2000
// If this code works, it was written by Paul DiLascia.
// If not, I don't know who wrote it.
// Compiles with Visual C++ 6.0, runs on Windows 98 and probably NT too.
//
#pragma once

//////////////////
// CDocManagerEx -- extension to CDocManager that uses CFileOpenEx.
//
class CDocManagerEx : public CDocManager {
public:
	CDocManagerEx();
	~CDocManagerEx();

	// override for open/save dialog
	virtual BOOL DoPromptFileName(CString& fileName, UINT nIDSTitle,
			DWORD lFlags, BOOL bOpenFileDialog, CDocTemplate* pTemplate);

protected:
	// new fn to create the file open dialog
	virtual CFileDialog* OnCreateFileDialog(BOOL bOpenFileDialog);

	DECLARE_DYNAMIC(CDocManagerEx)
};

⌨️ 快捷键说明

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