home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / cluster / smbsmp / smbsmpex / resprop.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-29  |  2.9 KB  |  117 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. //    Copyright (c) 1997 <company name>
  4. //
  5. //    Module Name:
  6. //        ResProp.h
  7. //
  8. //    Abstract:
  9. //        Definition of the resource extension property page classes.
  10. //
  11. //    Implementation File:
  12. //        ResProp.cpp
  13. //
  14. //    Author:
  15. //        <name> (<e-mail name>) Mmmm DD, 1997
  16. //
  17. //    Revision History:
  18. //
  19. //    Notes:
  20. //
  21. /////////////////////////////////////////////////////////////////////////////
  22.  
  23. #ifndef _RESPROP_H_
  24. #define _RESPROP_H_
  25.  
  26. /////////////////////////////////////////////////////////////////////////////
  27. // Include Files
  28. /////////////////////////////////////////////////////////////////////////////
  29.  
  30. #ifndef _BASEPAGE_H_
  31. #include "BasePage.h"    // for CBasePropertyPage
  32. #endif
  33.  
  34. #ifndef _PROPLIST_H_
  35. #include "PropList.h"    // for CObjectPropert
  36. #endif
  37.  
  38. /////////////////////////////////////////////////////////////////////////////
  39. // Forward Class Declarations
  40. /////////////////////////////////////////////////////////////////////////////
  41.  
  42. class CSmbSmpParamsPage;
  43.  
  44. /////////////////////////////////////////////////////////////////////////////
  45. // External Class Declarations
  46. /////////////////////////////////////////////////////////////////////////////
  47.  
  48. /////////////////////////////////////////////////////////////////////////////
  49. //
  50. //    CSmbSmpParamsPage
  51. //
  52. //    Purpose:
  53. //        Parameters page for resources.
  54. //
  55. /////////////////////////////////////////////////////////////////////////////
  56.  
  57. class CSmbSmpParamsPage : public CBasePropertyPage
  58. {
  59.     DECLARE_DYNCREATE(CSmbSmpParamsPage)
  60.  
  61. // Construction
  62. public:
  63.     CSmbSmpParamsPage(void);
  64.  
  65. // Dialog Data
  66.     //{{AFX_DATA(CSmbSmpParamsPage)
  67.     enum { IDD = IDD_PP_SMBSMP_PARAMETERS };
  68.     CEdit    m_editShareName;
  69.     CEdit    m_editPath;
  70.     CString    m_strShareName;
  71.     CString    m_strPath;
  72.     CString    m_strRemark;
  73.     //}}AFX_DATA
  74.     CString    m_strPrevShareName;
  75.     CString    m_strPrevPath;
  76.     CString    m_strPrevRemark;
  77.  
  78. protected:
  79.     enum
  80.     {
  81.         epropShareName,
  82.         epropPath,
  83.         epropRemark,
  84.         epropMAX
  85.     };
  86.     CObjectProperty        m_rgProps[epropMAX];
  87.  
  88. // Overrides
  89.     // ClassWizard generate virtual function overrides
  90.     //{{AFX_VIRTUAL(CSmbSmpParamsPage)
  91.     public:
  92.     virtual BOOL OnSetActive();
  93.     protected:
  94.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  95.     //}}AFX_VIRTUAL
  96.  
  97. protected:
  98.     virtual const CObjectProperty *    Pprops(void) const    { return m_rgProps; }
  99.     virtual DWORD                    Cprops(void) const    { return sizeof(m_rgProps) / sizeof(CObjectProperty); }
  100.  
  101. // Implementation
  102. protected:
  103.     BOOL    BAllRequiredFieldsPresent(void) const;
  104.  
  105.     // Generated message map functions
  106.     //{{AFX_MSG(CSmbSmpParamsPage)
  107.     virtual BOOL OnInitDialog();
  108.     afx_msg void OnChangeRequiredField();
  109.     //}}AFX_MSG
  110.     DECLARE_MESSAGE_MAP()
  111.  
  112. };  //*** class CSmbSmpParamsPage
  113.  
  114. /////////////////////////////////////////////////////////////////////////////
  115.  
  116. #endif // _RESPROP_H_
  117.