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.

109 lines
2.8 KiB

  1. /*++
  2. Microsoft Windows
  3. Copyright (C) Microsoft Corporation, 1981 - 2000
  4. Module Name:
  5. pathslct.hxx
  6. Abstract:
  7. See the comments in pathslct.cxx
  8. Author:
  9. Rahul Thombre (RahulTh) 3/1/2000
  10. Revision History:
  11. 3/1/2000 RahulTh Created this module.
  12. --*/
  13. #ifndef __PATHSLCT_HXX_E6109AEC_9599_4E7C_A853_CAB7047C507D__
  14. #define __PATHSLCT_HXX_E6109AEC_9599_4E7C_A853_CAB7047C507D__
  15. // Forward declarations
  16. class CRedirect;
  17. class CSecGroupPath;
  18. //
  19. // Derived control class from the edit control to prevent users from
  20. // entering variables
  21. //
  22. class CEditNoVars : public CEdit
  23. {
  24. protected:
  25. afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
  26. DECLARE_MESSAGE_MAP()
  27. };
  28. // This dialog is used to select the destination path for redirection.
  29. class CPathChooser : public CDialog
  30. {
  31. friend class CRedirect;
  32. friend class CSecGroupPath;
  33. public:
  34. CPathChooser(CWnd * pParent = NULL);
  35. void
  36. Instantiate (UINT cookie, // The folder to which this refers to.
  37. CWnd * pParent, // The pointer to the parent window.
  38. CWnd * pwndInsertAt,// To ensure right tabbing order and size.
  39. const CRedirPath * pRedirPath, // Current location of the folder.
  40. UINT nFlags = SWP_HIDEWINDOW // Window initialization flags.
  41. );
  42. void GetRoot (CString & szRoot);
  43. UINT GetType (void);
  44. // Dialog Data
  45. //{{AFX_DATA(CPathChooser)
  46. enum { IDD = IDD_PATHCHOOSER };
  47. CComboBox m_destType;
  48. CStatic m_rootDesc;
  49. CEditNoVars m_rootPath;
  50. CStatic m_peruserPathDesc;
  51. CButton m_browse;
  52. //}}AFX_DATA
  53. // Overrides
  54. // ClassWizard generated virtual function overrides
  55. //{{AFX_VIRTUAL(CPathChooser)
  56. protected:
  57. virtual void OnCancel();
  58. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  59. afx_msg LONG OnContextMenu (WPARAM wParam, LPARAM lParam);
  60. afx_msg LONG OnHelp (WPARAM wParam, LPARAM lParam);
  61. //}}AFX_VIRTUAL
  62. // Implementation
  63. protected:
  64. // Generated message map functions
  65. //{{AFX_MSG(CPathChooser)
  66. virtual BOOL OnInitDialog();
  67. afx_msg void OnChangeRoot();
  68. afx_msg void OnRootKillFocus();
  69. afx_msg void OnBrowse();
  70. afx_msg void OnDestTypeChange();
  71. //}}AFX_MSG
  72. DECLARE_MESSAGE_MAP()
  73. private: // Data members
  74. CWnd * m_pParent;
  75. const CRedirPath * m_pRedirPath;
  76. UINT m_cookie;
  77. LONG m_iCurrType;
  78. LONG m_iTypeStart;
  79. UINT m_iPathDescWidth; // Width of the path description window
  80. private: // Methods
  81. void PopulateControls (void);
  82. void ShowControls (void);
  83. void TweakPathNotify (void);
  84. };
  85. #endif //__PATHSLCT_HXX_E6109AEC_9599_4E7C_A853_CAB7047C507D__