PreviewFileDlg.h
上传用户:alisonmail
上传日期:2013-02-28
资源大小:500k
文件大小:2k
- /////////////////////////////////////////////////////////////////////////////
- // Copyright (C) 1998 by Jorge Lodos
- // All rights reserved
- //
- // Distribute and use freely, except:
- // 1. Don't alter or remove this notice.
- // 2. Mark the changes you made
- //
- // Send bug reports, bug fixes, enhancements, requests, etc. to:
- // lodos@cigb.edu.cu
- /////////////////////////////////////////////////////////////////////////////
-
- #if !defined(AFX_PREVIEWFILEDLG_H__1D054314_0872_11D2_8A46_0000E81D3D27__INCLUDED_)
- #define AFX_PREVIEWFILEDLG_H__1D054314_0872_11D2_8A46_0000E81D3D27__INCLUDED_
-
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- // PreviewFileDlg.h : header file
- //
- #include "DibStatic.h"
-
- /////////////////////////////////////////////////////////////////////////////
- // CPreviewFileDlg dialog
-
- class CPreviewFileDlg : public CFileDialog
- {
- DECLARE_DYNAMIC(CPreviewFileDlg)
-
- public:
- CPreviewFileDlg(BOOL bOpenFileDialog, // TRUE for FileOpen, FALSE for FileSaveAs
- LPCTSTR lpszDefExt = NULL,
- LPCTSTR lpszFileName = NULL,
- DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
- LPCTSTR lpszFilter = NULL,
- CWnd* pParentWnd = NULL);
-
- // Attributes
- public:
- BOOL m_bPreview;
- CDIBStatic m_DIBStaticCtrl;
-
- protected:
- //{{AFX_MSG(CPreviewFileDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnPreview();
- afx_msg BOOL OnQueryNewPalette();
- afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
- afx_msg void OnSetFocus(CWnd* pOldWnd);
- //}}AFX_MSG
- virtual void OnFileNameChange();
- virtual void OnFolderChange();
-
- // Implementation
- #ifdef _DEBUG
- virtual void Dump(CDumpContext& dc) const;
- #endif
- DECLARE_MESSAGE_MAP()
- };
-
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
- #endif // !defined(AFX_PREVIEWFILEDLG_H__1D054314_0872_11D2_8A46_0000E81D3D27__INCLUDED_)