Mercurial > vba-clojure
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/win32/FileDlg.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,43 @@ 1.4 +#if !defined(AFX_FILEDLG_H__7E4F8B92_1B63_4126_8261_D9334C645940__INCLUDED_) 1.5 +#define AFX_FILEDLG_H__7E4F8B92_1B63_4126_8261_D9334C645940__INCLUDED_ 1.6 + 1.7 +#if _MSC_VER > 1000 1.8 +#pragma once 1.9 +#endif // _MSC_VER > 1000 1.10 +// FileDlg.h : header file 1.11 +// 1.12 + 1.13 +struct OPENFILENAMEEX : public OPENFILENAME 1.14 +{ 1.15 + void *pvReserved; 1.16 + DWORD dwReserved; 1.17 + DWORD FlagsEx; 1.18 +}; 1.19 + 1.20 +///////////////////////////////////////////////////////////////////////////// 1.21 +// FileDlg dialog 1.22 + 1.23 +class FileDlg 1.24 +{ 1.25 +private: 1.26 + CString m_file; 1.27 + CString m_filter; 1.28 +public: 1.29 + OPENFILENAMEEX m_ofn; 1.30 + int DoModal(); 1.31 + LPCTSTR GetPathName(); 1.32 + virtual int getFilterIndex(); 1.33 + virtual void OnTypeChange(HWND hwnd); 1.34 + FileDlg(CWnd *parent, LPCTSTR file, LPCTSTR filter, 1.35 + int filterIndex, LPCTSTR ext, LPCTSTR *exts, LPCTSTR initialDir, 1.36 + LPCTSTR title, bool save, bool noReadOnly = false); 1.37 + virtual ~FileDlg(); 1.38 +protected: 1.39 + bool isSave; 1.40 + LPCTSTR *extensions; 1.41 +protected: 1.42 + //{{AFX_INSERT_LOCATION}} 1.43 + // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 1.44 +}; 1.45 + 1.46 +#endif // !defined(AFX_FILEDLG_H__7E4F8B92_1B63_4126_8261_D9334C645940__INCLUDED_)