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.

117 lines
3.0 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1996 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // GenApp.h
  7. //
  8. // Abstract:
  9. // Definition of the CGenericAppParamsPage class, which implements the
  10. // Parameters page for Generic Application resources.
  11. //
  12. // Implementation File:
  13. // GenApp.cpp
  14. //
  15. // Author:
  16. // David Potter (davidp) June 5, 1996
  17. //
  18. // Revision History:
  19. //
  20. // Notes:
  21. //
  22. /////////////////////////////////////////////////////////////////////////////
  23. #ifndef _GENAPP_H_
  24. #define _GENAPP_H_
  25. /////////////////////////////////////////////////////////////////////////////
  26. // Include Files
  27. /////////////////////////////////////////////////////////////////////////////
  28. #ifndef __cluadmex_h__
  29. #include <CluAdmEx.h>
  30. #endif
  31. #ifndef _BASEPAGE_H_
  32. #include "BasePage.h"
  33. #endif
  34. /////////////////////////////////////////////////////////////////////////////
  35. // Forward Class Declarations
  36. /////////////////////////////////////////////////////////////////////////////
  37. class CGenericAppParamsPage;
  38. /////////////////////////////////////////////////////////////////////////////
  39. // External Class Declarations
  40. /////////////////////////////////////////////////////////////////////////////
  41. /////////////////////////////////////////////////////////////////////////////
  42. // CGenericAppParamsPage dialog
  43. /////////////////////////////////////////////////////////////////////////////
  44. class CGenericAppParamsPage : public CBasePropertyPage
  45. {
  46. DECLARE_DYNCREATE(CGenericAppParamsPage)
  47. // Construction
  48. public:
  49. CGenericAppParamsPage(void);
  50. // Dialog Data
  51. //{{AFX_DATA(CGenericAppParamsPage)
  52. enum { IDD = IDD_PP_GENAPP_PARAMETERS };
  53. CEdit m_editCurrentDirectory;
  54. CButton m_ckbUseNetworkName;
  55. CEdit m_editCommandLine;
  56. CString m_strCommandLine;
  57. CString m_strCurrentDirectory;
  58. BOOL m_bInteractWithDesktop;
  59. BOOL m_bUseNetworkName;
  60. //}}AFX_DATA
  61. CString m_strPrevCommandLine;
  62. CString m_strPrevCurrentDirectory;
  63. BOOL m_bPrevInteractWithDesktop;
  64. BOOL m_bPrevUseNetworkName;
  65. protected:
  66. enum
  67. {
  68. epropCommandLine,
  69. epropCurrentDirectory,
  70. epropInteractWithDesktop,
  71. epropUseNetworkName,
  72. epropMAX
  73. };
  74. CObjectProperty m_rgProps[epropMAX];
  75. // Overrides
  76. public:
  77. // ClassWizard generate virtual function overrides
  78. //{{AFX_VIRTUAL(CGenericAppParamsPage)
  79. public:
  80. virtual BOOL OnSetActive();
  81. protected:
  82. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  83. //}}AFX_VIRTUAL
  84. protected:
  85. virtual const CObjectProperty * Pprops(void) const { return m_rgProps; }
  86. virtual DWORD Cprops(void) const { return sizeof(m_rgProps) / sizeof(CObjectProperty); }
  87. // Implementation
  88. protected:
  89. // Generated message map functions
  90. //{{AFX_MSG(CGenericAppParamsPage)
  91. afx_msg void OnChangeRequired();
  92. virtual BOOL OnInitDialog();
  93. //}}AFX_MSG
  94. DECLARE_MESSAGE_MAP()
  95. }; //*** class CGenericAppParamsPage
  96. /////////////////////////////////////////////////////////////////////////////
  97. #endif // _GENAPP_H_