view src/win32/FileDlg.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line source
1 #if !defined(AFX_FILEDLG_H__7E4F8B92_1B63_4126_8261_D9334C645940__INCLUDED_)
2 #define AFX_FILEDLG_H__7E4F8B92_1B63_4126_8261_D9334C645940__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // FileDlg.h : header file
8 //
10 struct OPENFILENAMEEX : public OPENFILENAME
11 {
12 void *pvReserved;
13 DWORD dwReserved;
14 DWORD FlagsEx;
15 };
17 /////////////////////////////////////////////////////////////////////////////
18 // FileDlg dialog
20 class FileDlg
21 {
22 private:
23 CString m_file;
24 CString m_filter;
25 public:
26 OPENFILENAMEEX m_ofn;
27 int DoModal();
28 LPCTSTR GetPathName();
29 virtual int getFilterIndex();
30 virtual void OnTypeChange(HWND hwnd);
31 FileDlg(CWnd *parent, LPCTSTR file, LPCTSTR filter,
32 int filterIndex, LPCTSTR ext, LPCTSTR *exts, LPCTSTR initialDir,
33 LPCTSTR title, bool save, bool noReadOnly = false);
34 virtual ~FileDlg();
35 protected:
36 bool isSave;
37 LPCTSTR *extensions;
38 protected:
39 //{{AFX_INSERT_LOCATION}}
40 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
41 };
43 #endif // !defined(AFX_FILEDLG_H__7E4F8B92_1B63_4126_8261_D9334C645940__INCLUDED_)