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.

50 lines
1.4 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. // Copyright (c) 2002 Microsoft Corporation. All rights reserved.
  3. // Copyright (c) 2002 OSR Open Systems Resources, Inc.
  4. //
  5. // PathDlg.h : interface of the CPathDlg class
  6. //////////////////////////////////////////////////////////////////////////////
  7. #pragma once
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CPathDlg dialog
  10. class CPathDlg : public CFileDialog
  11. {
  12. DECLARE_DYNAMIC(CPathDlg)
  13. public:
  14. virtual BOOL OnFileNameOK(void);
  15. virtual void OnLBSelChangedNotify(UINT nIDBox, UINT iCurSel, UINT nCode);
  16. CPathDlg(BOOL bOpenFileDialog,
  17. LPCTSTR lpszDefExt = NULL,
  18. LPCTSTR lpszFileName = NULL,
  19. DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | OFN_ENABLETEMPLATE,
  20. LPCTSTR lpszFilter = NULL,
  21. CWnd *pParentWnd = NULL);
  22. CString m_pathName;
  23. BOOL m_bFirstTime;
  24. // Dialog Data
  25. //{{AFX_DATA(CPathDlg)
  26. enum {IDD = IDD_DIRECTORY_SELECT_DIALOG};
  27. CEdit m_PathName;
  28. //}}AFX_DATA
  29. // Overrides
  30. // ClassWizard generated virtual function overrides
  31. //{{AFX_VIRTUAL(CPathDlg)
  32. protected:
  33. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  34. //}}AFX_VIRTUAL
  35. protected:
  36. //{{AFX_MSG(CPathDlg)
  37. virtual BOOL OnInitDialog();
  38. afx_msg void OnPaint();
  39. //}}AFX_MSG
  40. DECLARE_MESSAGE_MAP()
  41. };