home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / dlgcbr32 / wndlist.h < prev   
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.6 KB  |  86 lines

  1. // WndList.h : header file
  2. //
  3.  
  4. // This is a part of the Microsoft Foundation Classes C++ library.
  5. // Copyright (C) 1992-1998 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // Microsoft Foundation Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding the
  12. // Microsoft Foundation Classes product.
  13.  
  14. /*****************************************************************************
  15.   Purpose:
  16.     Interface of CWndListDlg, the main dialog window for the application.
  17.  
  18.   Functions:
  19.     CWndListDlg::CWndListDlg()          -- constructor
  20.     CWndListDlg::Create()               -- create dialog window
  21.     CWndListDlg::DoDataExchange()       -- dialog data exchange/validation
  22.     CWndListDlg::OnClose()              -- WM_CLOSE handler
  23.     CWndListDlg::OnInitDialog()         -- initialize dialog
  24.     CWndListDlg::OnOptionNow()          -- handle "Options!Update Now"
  25.     CWndListDlg::OnOptionRate()         -- handle "Options!Update Interval"
  26.     CWndListDlg::OnSelChangeWndList()   -- update dlg on list selection change
  27.     CWndListDlg::OnTimer()              -- WM_TIMER handler
  28.     CWndListDlg::OnUpdateOptionRate()   -- set "Options!Update Interval" status
  29.     CWndListDlg::OnUpdateTime()         -- update status bar clock
  30.     CWndListDlg::WalkWindowList()       -- enumerate windows
  31.  
  32.   Development Team:
  33.     Mary Kirtland
  34.   Ported to 32-bit by:
  35.     Mike Hedley
  36.   Created by Microsoft Product Support Services, Premier ISV Support
  37.   Copyright (c) 1998 Microsoft Corporation. All rights reserved.
  38. \****************************************************************************/
  39.  
  40. #ifndef __WNDLIST_H__
  41. #define __WNDLIST_H__
  42.  
  43. #include "mdlsmain.h"
  44.  
  45. class CWndListDlg : public CModelessMain
  46. {
  47. // Construction
  48. public:
  49.     CWndListDlg();
  50.     BOOL Create();
  51.  
  52. // Dialog Data
  53. protected:
  54.     //{{AFX_DATA(CWndListDlg)
  55.     enum { IDD = IDR_MAIN };
  56.     CListBox    m_lbWindows;
  57.     //}}AFX_DATA
  58.  
  59.     UINT    m_nIDTimer;
  60.     UINT    m_iRate;
  61.     UINT    m_iTicks;
  62.  
  63. // Overrides
  64. protected:
  65.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  66.     virtual BOOL OnInitDialog();
  67.  
  68. // Implementation
  69. protected:
  70.     void WalkWindowList();
  71.  
  72.     // Generated message map functions
  73.     //{{AFX_MSG(CWndListDlg)
  74.     afx_msg void OnClose();
  75.     afx_msg void OnTimer(UINT nIDEvent);
  76.     afx_msg void OnSelChangeWndList();
  77.     afx_msg void OnOptionNow();
  78.     afx_msg void OnOptionRate();
  79.     afx_msg void OnUpdateOptionRate(CCmdUI* pCmdUI);
  80.     //}}AFX_MSG
  81.     afx_msg void OnUpdateTime(CCmdUI* pCmdUI);
  82.     DECLARE_MESSAGE_MAP()
  83. };
  84.  
  85. #endif //__WNDLIST_H__
  86.