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