📄 filedialogex.h
字号:
////////////////////////////////////////////////////////////////
// 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
// Windows 2000 version of OPENFILENAME.
// The new version has three extra members.
// This is copied from commdlg.h
////=====================================================================================
// 项目名: SuperMap DeskPro 3.0
// 作 者: 肖乐斌,杨斌斌,王立鸿、陈勇
// 单 位: 北京超图地理信息技术有限公司
// 最后修改时间: 以文件日期为准
//-------------------------------------------------------------------------------------
// 文件名: FileDialogEx.h;FileDialogEx.cpp
// 类 名: CFileDialogEx
// 父 类: CFileDialog
// 子 类: 无
// 功能说明: 窃自程序员大本营,Win2000 文件对话框,在98/nt中为原来的东东
// 调用说明: 和CFileDialog用法一样
//=====================================================================================
//
//
#include <afxpriv.h>
struct OPENFILENAMEEX : public OPENFILENAME {
void * pvReserved;
DWORD dwReserved;
DWORD FlagsEx;
};
/////////////////////////////////////////////////////////////////////////////
// CFileDialogEx: Encapsulate Windows-2000 style open dialog.
//
class CFileDialogEx : public CFileDialog {
DECLARE_DYNAMIC(CFileDialogEx)
public:
CFileDialogEx(BOOL bOpenFileDialog, // TRUE for open, FALSE for FileSaveAs
LPCTSTR lpszDefExt = NULL,
LPCTSTR lpszFileName = NULL,
DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
LPCTSTR lpszFilter = NULL,
CWnd* pParentWnd = NULL);
// override
virtual int DoModal();
protected:
OPENFILENAMEEX m_ofnEx; // new Windows 2000 version of OPENFILENAME
virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
// virtual fns that handle various notifications
virtual BOOL OnFileNameOK();
virtual void OnInitDone();
virtual void OnFileNameChange();
virtual void OnFolderChange();
virtual void OnTypeChange();
DECLARE_MESSAGE_MAP()
//{{AFX_MSG(CFileDialogEx)
//}}AFX_MSG
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -