Source code of Windows XP (NT5)
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.

104 lines
2.6 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: svfildlg.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #if !defined(AFX_SVFILDLG_H__28CEAD2E_10E1_11D2_BA23_00C04F8141EF__INCLUDED_)
  11. #define AFX_SVFILDLG_H__28CEAD2E_10E1_11D2_BA23_00C04F8141EF__INCLUDED_
  12. #ifdef IMPLEMENT_LIST_SAVE // See nodemgr.idl (t-dmarm)
  13. #include "filedlgex.h"
  14. // Flags
  15. #define SELECTED 0x0001
  16. // File Types
  17. // Please do not change the order. This order is same
  18. // as the IDS_FILE_TYPE string which contains
  19. // the file types in resource file.
  20. enum eFileTypes
  21. {
  22. FILE_ANSI_TEXT = 1,
  23. FILE_ANSI_CSV,
  24. FILE_UNICODE_TEXT,
  25. FILE_UNICODE_CSV
  26. };
  27. #if _MSC_VER >= 1000
  28. #pragma once
  29. #endif // _MSC_VER >= 1000
  30. // svfildlg.h : header file
  31. //
  32. /////////////////////////////////////////////////////////////////////////////
  33. // CSaveFileDialog dialog
  34. class CSaveFileDialog : public CFileDialogEx
  35. {
  36. //DECLARE_DYNCREATE(CSaveFileDialog)
  37. // Construction
  38. public:
  39. CSaveFileDialog(BOOL bOpenFileDialog,
  40. LPCTSTR lpszDefExt = NULL,
  41. LPCTSTR lpszFileName = NULL,
  42. DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
  43. LPCTSTR lpszFilter = NULL,
  44. bool bSomeRowSelected = false,
  45. CWnd* pParentWnd = NULL); // standard constructor
  46. DWORD Getflags()
  47. {
  48. return m_flags;
  49. }
  50. eFileTypes GetFileType()
  51. {
  52. return (eFileTypes)m_ofn.nFilterIndex;
  53. }
  54. ~CSaveFileDialog();
  55. // Overrides
  56. // ClassWizard generated virtual function overrides
  57. //{{AFX_VIRTUAL(CSaveFileDialog)
  58. protected:
  59. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  60. //}}AFX_VIRTUAL
  61. // Implementation
  62. protected:
  63. // Generated message map functions
  64. //{{AFX_MSG(CSaveFileDialog)
  65. afx_msg void OnSel();
  66. //}}AFX_MSG
  67. LRESULT OnInitDialog(WPARAM, LPARAM);
  68. IMPLEMENT_CONTEXT_HELP(g_aHelpIDs_IDD_LIST_SAVE);
  69. DECLARE_MESSAGE_MAP()
  70. private:
  71. static const TCHAR strSection[];
  72. static const TCHAR strStringItem[];
  73. TCHAR szPath[MAX_PATH];
  74. TCHAR szFileName[MAX_PATH];
  75. CString m_strTitle;
  76. CString m_strRegPath;
  77. DWORD m_flags;
  78. bool m_bSomeRowSelected;
  79. };
  80. #endif // IMPLEMENT_LIST_SAVE See nodemgr.idl (t-dmarm)
  81. //{{AFX_INSERT_LOCATION}}
  82. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  83. #endif // !defined(AFX_SVFILDLG_H__28CEAD2E_10E1_11D2_BA23_00C04F8141EF__INCLUDED_)