bmpdlg.h
来自「Visual C++下的界面设计」· C头文件 代码 · 共 42 行
H
42 行
/*************************************************************************
BmpDlg.h header file
CBmpDialog: A bitmap open dialog with preview.
by The Gremlin
Compatibility: Visual C++ 4.0 and up.
**************************************************************************/
#ifndef _BMPDIALOG_H_
#define _BMPDIALOG_H_
// CBmpDialog dialog
class CBmpDialog : public CFileDialog
{
DECLARE_DYNAMIC(CBmpDialog)
public:
CBmpDialog(BOOL bOpenFileDialog = TRUE, // TRUE for FileOpen, FALSE for FileSaveAs. Who would want a save with preview?
LPCTSTR lpszDefExt = NULL,
LPCTSTR lpszFileName = NULL,
DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
LPCTSTR lpszFilter = NULL,
CWnd* pParentWnd = NULL);
static BOOL m_showpreview; // Store this variable in the registry if you want the "Show Preview" setting to be persistent
static HBITMAP hpreview;
protected:
//{{AFX_MSG(CBmpDialog)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?