home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / ole / tstcon / pedreqpg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.0 KB  |  74 lines

  1. #if !defined(AFX_PROPERTYEDITREQUESTSPAGE_H__E3C35167_EC02_11D0_8E1D_00C04FB68D60__INCLUDED_)
  2. #define AFX_PROPERTYEDITREQUESTSPAGE_H__E3C35167_EC02_11D0_8E1D_00C04FB68D60__INCLUDED_
  3.  
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // PropertyEditRequestsPage.H : header file
  8. //
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CPropertyEditRequestsPage dialog
  12.  
  13. class CPropertyEditRequestsPage :
  14.    public CPropertyPage
  15. {
  16.    DECLARE_DYNCREATE( CPropertyEditRequestsPage )
  17.  
  18. public:
  19.    class CPropertyInfo
  20.    {
  21.    public:
  22.       CPropertyInfo();
  23.       CPropertyInfo( LPCTSTR pszName, BOOL tLogged, int iResponse );
  24.  
  25.    public:
  26.       CString m_strName;
  27.       BOOL m_tLogged;
  28.       int m_iResponse;
  29.    };
  30.  
  31. // Construction
  32. public:
  33.     CPropertyEditRequestsPage();
  34.  
  35. // Dialog Data
  36.     //{{AFX_DATA(CPropertyEditRequestsPage)
  37.     enum { IDD = IDD_CONTROLLOGGING_PROPERTYEDITREQUESTS };
  38.     CCheckListBox   m_lbProperties;
  39.     int     m_iAllowEdit;
  40.     //}}AFX_DATA
  41.  
  42.    CArray< CPropertyInfo, CPropertyInfo& > m_aProperties;
  43.  
  44. // Overrides
  45.     // ClassWizard generated virtual function overrides
  46.     //{{AFX_VIRTUAL(CPropertyEditRequestsPage)
  47.     protected:
  48.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  49.     //}}AFX_VIRTUAL
  50.  
  51. // Implementation
  52. protected:
  53.    int GetSelectionResponse();
  54.    void SetSelectionResponse( int iResponse );
  55.  
  56.     // Generated message map functions
  57.     //{{AFX_MSG(CPropertyEditRequestsPage)
  58.     virtual BOOL OnInitDialog();
  59.     afx_msg void OnPropertiesSelChange();
  60.     afx_msg void OnAlways();
  61.     afx_msg void OnNever();
  62.     afx_msg void OnPrompt();
  63.     afx_msg void OnSelectAll();
  64.     afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  65.     afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  66.     //}}AFX_MSG
  67.     DECLARE_MESSAGE_MAP()
  68. };
  69.  
  70. //{{AFX_INSERT_LOCATION}}
  71. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  72.  
  73. #endif // !defined(AFX_PROPERTYEDITREQUESTSPAGE_H__E3C35167_EC02_11D0_8E1D_00C04FB68D60__INCLUDED_)
  74.