mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.7 KiB
67 lines
1.7 KiB
//-----------------------------------------------------------------------------
|
|
//
|
|
// File: FileDlg.h
|
|
// Copyright (C) 1994-1997 Microsoft Corporation
|
|
// All rights reserved.
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#if !defined(__FileDlg_h__)
|
|
#define __FileDlg_h__
|
|
|
|
#pragma warning(disable : 4275)
|
|
|
|
class LTAPIENTRY CLFileDialog : public CFileDialog
|
|
{
|
|
DECLARE_DYNAMIC(CLFileDialog)
|
|
|
|
public:
|
|
CLFileDialog(
|
|
BOOL bOpenFileDialog = TRUE, // TRUE for FileOpen, FALSE for FileSaveAs
|
|
LPCTSTR lpszDefExt = NULL,
|
|
LPCTSTR lpszFileName = NULL,
|
|
DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
|
|
LPCTSTR lpszFilter = NULL,
|
|
CWnd* pParentWnd = NULL,
|
|
LPCTSTR pszTitle = NULL);
|
|
|
|
// Operations
|
|
public:
|
|
CString GetFileFilter();
|
|
|
|
virtual int DoModal();
|
|
|
|
// Attributes
|
|
public:
|
|
virtual void SetOkButtonText(TCHAR const * const szOkText);
|
|
virtual void SetOkButtonText(HINSTANCE const hResourceDll,
|
|
UINT const uStringId);
|
|
|
|
virtual void SetCancelButtonText(TCHAR const * const szCancelText);
|
|
virtual void SetCancelButtonText(HINSTANCE const hResourceDll,
|
|
UINT const uStringId);
|
|
|
|
virtual void SetCheckIfBufferTooSmall(BOOL const bCheckIfBufferTooSmall);
|
|
|
|
// Data
|
|
protected:
|
|
CLString m_strOkButton; // new OK button text for dialog
|
|
CLString m_strCancelButton; // new Cancel button text for dialog
|
|
BOOL m_bCheckIfBufferTooSmall; // should DoModal() checks condition?
|
|
|
|
// Implementation
|
|
protected:
|
|
//{{AFX_MSG(CProjectOpenDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
// Implementation
|
|
protected:
|
|
virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT * pResult);
|
|
};
|
|
|
|
#pragma warning(default : 4275)
|
|
|
|
#endif
|