summaryrefslogtreecommitdiff
path: root/src/T2OpenFileDialog.h
blob: 713d73c8631609fbbd5c8b5a4e1fa251a1776307 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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()
};