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.

84 lines
2.2 KiB

  1. #if !defined(AFX_PREFS_H__C3E78E6C_76EC_11D2_9B6C_0000F8080861__INCLUDED_)
  2. #define AFX_PREFS_H__C3E78E6C_76EC_11D2_9B6C_0000F8080861__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // CoolClass.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CRedirPref property page
  10. class CRedirPref : public CPropertyPage
  11. {
  12. friend class CScopePane;
  13. friend class CRedirect;
  14. // Construction
  15. public:
  16. CRedirPref();
  17. ~CRedirPref();
  18. // Data
  19. //{{AFX_DATA(CRedirPref)
  20. enum { IDD = IDD_REDIRMETHOD };
  21. CStatic m_csTitle;
  22. CButton m_cbMoveContents;
  23. CStatic m_grOrphan;
  24. CButton m_rbOrphan;
  25. CButton m_rbRelocate;
  26. CButton m_cbApplySecurity;
  27. CButton m_grMyPics;
  28. CButton m_rbFollowMyDocs;
  29. CButton m_rbNoModify;
  30. // NOTE: the ClassWizard will add data members here
  31. //}}AFX_DATA
  32. // Overrides
  33. // ClassWizard generated virtual function overrides
  34. //{{AFX_VIRTUAL(CRedirPref)
  35. protected:
  36. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  37. //}}AFX_VIRTUAL
  38. // Implementation
  39. protected:
  40. // Generated message map functions
  41. //{{AFX_MSG(CRedirPref)
  42. virtual BOOL OnInitDialog();
  43. virtual BOOL OnSetActive();
  44. afx_msg void OnModify();
  45. afx_msg void OnMyPicsChange();
  46. afx_msg LONG OnContextMenu (WPARAM wParam, LPARAM lParam);
  47. afx_msg LONG OnHelp (WPARAM wParam, LPARAM lParam);
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. //private member variables
  51. private:
  52. CRedirPref** m_ppThis;
  53. CFileInfo* m_pFileInfo;
  54. CString m_szFolderName;
  55. BOOL m_fInitialized; //indicates if the InitDialog message has been received.
  56. BOOL m_fMyPicsValid;
  57. BOOL m_fSettingsChanged;
  58. BOOL m_fMyPicsFollows;
  59. //member functions
  60. public:
  61. void EnablePage (BOOL bEnable = TRUE);
  62. void DirtyPage (BOOL fModified);
  63. //helper functions
  64. private:
  65. void DisableSettings (void);
  66. void EnableSettings (void);
  67. void EnableMyPicsSettings (BOOL bEnable = TRUE);
  68. };
  69. //{{AFX_INSERT_LOCATION}}
  70. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  71. #endif // !defined(AFX_PREFS_H__C3E78E6C_76EC_11D2_9B6C_0000F8080861__INCLUDED_)