#pragma once #include "common.h" #include "resource.h" #include "T2FilePreview.h" class T2OpenFileDialog : public CFileDialog { public: DECLARE_DYNAMIC(T2OpenFileDialog) T2OpenFileDialog(BOOL bOpenFileDialog, const CHAR *lpszDefExt, const CHAR *lpszFileName, DWORD dwFlags, const CHAR *lpszFilter, CWnd *pParentWnd); T2FilePreview mFilePreview; //{{AFX_VIRTUAL(T2OpenFileDialog) public: virtual BOOL OnInitDialog(); protected: virtual void OnFileNameChange(); //}}AFX_VIRTUAL protected: //{{AFX_MSG(T2OpenFileDialog) afx_msg void OnClose(); //}}AFX_MSG DECLARE_MESSAGE_MAP() };