summaryrefslogtreecommitdiffstats
path: root/src/windows/leash/LeashFileDialog.h
diff options
context:
space:
mode:
authorSam Hartman <hartmans@mit.edu>2011-09-28 21:02:14 +0000
committerSam Hartman <hartmans@mit.edu>2011-09-28 21:02:14 +0000
commitcaef99b21536d9e8c2f9c637fcf020b4e082db5d (patch)
treeb360ec8449876ea170691685cde758d9849fc8ef /src/windows/leash/LeashFileDialog.h
parent8481c14298a1886f63bec0d7cdfd800a86b4c127 (diff)
downloadkrb5-caef99b21536d9e8c2f9c637fcf020b4e082db5d.tar.gz
krb5-caef99b21536d9e8c2f9c637fcf020b4e082db5d.tar.xz
krb5-caef99b21536d9e8c2f9c637fcf020b4e082db5d.zip
Initial import of KFW 3.2.2 Leash32 code
Signed-off-by: Alexey Melnikov <aamelnikov@gmail.com> git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25278 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/windows/leash/LeashFileDialog.h')
-rw-r--r--src/windows/leash/LeashFileDialog.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/windows/leash/LeashFileDialog.h b/src/windows/leash/LeashFileDialog.h
new file mode 100644
index 0000000000..aef156d355
--- /dev/null
+++ b/src/windows/leash/LeashFileDialog.h
@@ -0,0 +1,57 @@
+// **************************************************************************************
+// File: LeashFileDialog.h
+// By: Arthur David Leather
+// Created: 12/02/98
+// Copyright @1998 Massachusetts Institute of Technology - All rights reserved.
+// Description: H file for LeashFileDialog.cpp. Contains variables and functions
+// for the Leash File Dialog Box
+//
+// History:
+//
+// MM/DD/YY Inits Description of Change
+// 12/02/98 ADL Original
+// **************************************************************************************
+
+
+#if !defined(AFX_LEASHFILEDIALOG_H__E74500E1_6B74_11D2_9448_0000861B8A3C__INCLUDED_)
+#define AFX_LEASHFILEDIALOG_H__E74500E1_6B74_11D2_9448_0000861B8A3C__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+// LeashFileDialog.h : header file
+//
+
+/////////////////////////////////////////////////////////////////////////////
+// CLeashFileDialog dialog
+
+class CLeashFileDialog : public CFileDialog
+{
+ DECLARE_DYNAMIC(CLeashFileDialog)
+
+private:
+ CHAR m_lpstrFileTitle[MAX_PATH];
+ BOOL m_startup;
+
+public:
+ CLeashFileDialog(BOOL bOpenFileDialog, // TRUE for FileOpen, FALSE for FileSaveAs
+ LPCTSTR lpszDefExt = NULL,
+ LPCTSTR lpszFileName = NULL,
+ LPCTSTR lpszFilter = NULL,
+ DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | OFN_FILEMUSTEXIST,
+ CWnd* pParentWnd = NULL);
+
+ CString GetSelectedFileName() {return m_lpstrFileTitle;}
+
+protected:
+ //{{AFX_MSG(CLeashFileDialog)
+ virtual BOOL OnInitDialog();
+ virtual void OnFileNameChange( );
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+};
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_LEASHFILEDIALOG_H__E74500E1_6B74_11D2_9448_0000861B8A3C__INCLUDED_)