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 / apropdg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.1 KB  |  74 lines

  1. #if !defined(AFX_CAMBIENTPROPERTIESDLG_H__4D06A27D_C318_11D0_8DFF_00C04FB68D60__INCLUDED_)
  2. #define AFX_CAMBIENTPROPERTIESDLG_H__4D06A27D_C318_11D0_8DFF_00C04FB68D60__INCLUDED_
  3.  
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // CAmbientPropertiesDlg.H : header file
  8. //
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CAmbientPropertiesDlg dialog
  12.  
  13. class CAmbientPropertiesDlg : public CDialog
  14. {
  15. // Construction
  16. public:
  17.     CAmbientPropertiesDlg( CWnd* pParent, CTestContainer98Doc* pDoc );
  18.  
  19.    BOOL GetChangedPropertyID( DISPID* pdispid ) const;
  20.  
  21. // Dialog Data
  22.     //{{AFX_DATA(CAmbientPropertiesDlg)
  23.     enum { IDD = IDD_AMBIENTPROPERTIES };
  24.     CStatic m_staticPropertyValue;
  25.     CEdit   m_editDISPID;
  26.     CButton m_butChooseFont;
  27.     CButton m_butChooseColor;
  28.     CComboBox   m_cboxPropName;
  29.     CButton m_butSetValue;
  30.     CEdit   m_editPropValue;
  31.     CComboBox   m_cboxPropType;
  32.     CButton m_checkEnabled;
  33.     //}}AFX_DATA
  34.  
  35.  
  36. // Overrides
  37.     // ClassWizard generated virtual function overrides
  38.     //{{AFX_VIRTUAL(CAmbientPropertiesDlg)
  39.     protected:
  40.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  41.     //}}AFX_VIRTUAL
  42.  
  43. // Implementation
  44. protected:
  45.    void OnPropertyChanged( DISPID dispid );
  46.  
  47. protected:
  48.    CTestContainer98Doc* m_pDoc;
  49.    CAmbientProperty* m_pProp;
  50.    BOOL m_tChanged;
  51.    DISPID m_dispidChanged;
  52.  
  53.     // Generated message map functions
  54.     //{{AFX_MSG(CAmbientPropertiesDlg)
  55.     virtual BOOL OnInitDialog();
  56.     afx_msg void OnPropNameSelChange();
  57.     afx_msg void OnPropTypeSelChange();
  58.     afx_msg void OnSetValue();
  59.     afx_msg void OnEnabled();
  60.     afx_msg void OnChooseColor();
  61.     afx_msg void OnChooseFont();
  62.     afx_msg void OnNewProperty();
  63.     afx_msg void OnPropValueSetFocus();
  64.     afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  65.     afx_msg void OnContextMenu(CWnd* , CPoint);
  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_CAMBIENTPROPERTIESDLG_H__4D06A27D_C318_11D0_8DFF_00C04FB68D60__INCLUDED_)
  74.