00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #if !defined(AFX_PREVIEWFILEDLG_H__1D054314_0872_11D2_8A46_0000E81D3D27__INCLUDED_)
00014 #define AFX_PREVIEWFILEDLG_H__1D054314_0872_11D2_8A46_0000E81D3D27__INCLUDED_
00015
00016 #if _MSC_VER >= 1000
00017 #pragma once
00018 #endif // _MSC_VER >= 1000
00019
00020
00021
00022
00023
00024
00025 class CPreviewFileDlg : public CFileDialog
00026 {
00027 DECLARE_DYNAMIC(CPreviewFileDlg)
00028
00029 public:
00030 CPreviewFileDlg(BOOL bOpenFileDialog,
00031 LPCTSTR lpszDefExt = NULL,
00032 LPCTSTR lpszFileName = NULL,
00033 DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
00034 LPCTSTR lpszFilter = NULL,
00035 CWnd* pParentWnd = NULL);
00036
00037
00038 private:
00039 bool m_bPreview;
00040 CDIBStatic m_DIBStaticCtrl;
00041
00042 protected:
00043
00044 virtual BOOL OnInitDialog();
00045 afx_msg void OnPreview();
00046 afx_msg BOOL OnQueryNewPalette();
00047 afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
00048 afx_msg void OnSetFocus(CWnd* pOldWnd);
00049
00050 virtual void OnFileNameChange();
00051
00052
00053 #ifdef _DEBUG
00054 virtual void Dump(CDumpContext& dc) const;
00055 #endif
00056 DECLARE_MESSAGE_MAP()
00057 };
00058
00059
00060
00061
00062 #endif // !defined(AFX_PREVIEWFILEDLG_H__1D054314_0872_11D2_8A46_0000E81D3D27__INCLUDED_)
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084