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

  1. #if !defined(AFX_REGISTERCONTROLSDLG_H__6E565AF4_D854_11D0_8E11_00C04FB68D60__INCLUDED_)
  2. #define AFX_REGISTERCONTROLSDLG_H__6E565AF4_D854_11D0_8E11_00C04FB68D60__INCLUDED_
  3.  
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // RegisterControlsDlg.H : header file
  8. //
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CRegisterControlsDlg dialog
  12.  
  13. class CRegisterControlsDlg : public CDialog
  14. {
  15. // Construction
  16. public:
  17.     CRegisterControlsDlg(CWnd* pParent = NULL);   // standard constructor
  18.  
  19. // Dialog Data
  20.     //{{AFX_DATA(CRegisterControlsDlg)
  21.     enum { IDD = IDD_REGISTERCONTROLS };
  22.     CButton m_butReregister;
  23.     CButton m_butUnregister;
  24.     CListCtrl   m_lvRegisteredControls;
  25.     //}}AFX_DATA
  26.  
  27.  
  28. // Overrides
  29.     // ClassWizard generated virtual function overrides
  30.     //{{AFX_VIRTUAL(CRegisterControlsDlg)
  31.     protected:
  32.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  33.     //}}AFX_VIRTUAL
  34.  
  35. // Implementation
  36. protected:
  37.    void RefreshRegisteredControls();
  38.    void UpdateButtons();
  39.  
  40.     // Generated message map functions
  41.     //{{AFX_MSG(CRegisterControlsDlg)
  42.     virtual BOOL OnInitDialog();
  43.     afx_msg void OnUnregister();
  44.     afx_msg void OnRegisteredControlsItemChanged(NMHDR* pNMHDR, LRESULT* pResult);
  45.     afx_msg void OnReregister();
  46.     afx_msg void OnRegister();
  47.     afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  48.     afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  49.     //}}AFX_MSG
  50.     DECLARE_MESSAGE_MAP()
  51. };
  52.  
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  55.  
  56. #endif // !defined(AFX_REGISTERCONTROLSDLG_H__6E565AF4_D854_11D0_8E11_00C04FB68D60__INCLUDED_)
  57.