Leaked source code of windows server 2003
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.

70 lines
1.6 KiB

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. FILEDLG.H
  5. History:
  6. --*/
  7. #if !defined(__FileDlg_h__)
  8. #define __FileDlg_h__
  9. #pragma warning(disable : 4275)
  10. class LTAPIENTRY CLFileDialog : public CFileDialog
  11. {
  12. DECLARE_DYNAMIC(CLFileDialog)
  13. public:
  14. CLFileDialog(
  15. BOOL bOpenFileDialog = TRUE, // TRUE for FileOpen, FALSE for FileSaveAs
  16. LPCTSTR lpszDefExt = NULL,
  17. LPCTSTR lpszFileName = NULL,
  18. DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
  19. LPCTSTR lpszFilter = NULL,
  20. CWnd* pParentWnd = NULL,
  21. LPCTSTR pszTitle = NULL);
  22. // Operations
  23. public:
  24. CString GetFileFilter();
  25. virtual int DoModal();
  26. // Attributes
  27. public:
  28. virtual void SetOkButtonText(TCHAR const * const szOkText);
  29. virtual void SetOkButtonText(HINSTANCE const hResourceDll,
  30. UINT const uStringId);
  31. virtual void SetCancelButtonText(TCHAR const * const szCancelText);
  32. virtual void SetCancelButtonText(HINSTANCE const hResourceDll,
  33. UINT const uStringId);
  34. virtual void SetCheckIfBufferTooSmall(BOOL const bCheckIfBufferTooSmall);
  35. // Data
  36. protected:
  37. CLString m_strOkButton; // new OK button text for dialog
  38. CLString m_strCancelButton; // new Cancel button text for dialog
  39. BOOL m_bCheckIfBufferTooSmall; // should DoModal() checks condition?
  40. // Implementation
  41. protected:
  42. //{{AFX_MSG(CProjectOpenDlg)
  43. virtual BOOL OnInitDialog();
  44. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  45. //}}AFX_MSG
  46. DECLARE_MESSAGE_MAP()
  47. // Implementation
  48. protected:
  49. virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT * pResult);
  50. };
  51. #pragma warning(default : 4275)
  52. #endif