home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / atl / atlfire / propdlg.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  73 lines

  1. // PropDlg.h : Declaration of the CPropDlg
  2. //
  3. // This is a part of the Active Template Library.
  4. // Copyright (C) 1996-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Active Template Library Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Active Template Library product.
  12.  
  13. #ifndef __PROPDLG_H_
  14. #define __PROPDLG_H_
  15.  
  16. #include "resource.h"       // main symbols
  17. #include "commctrl.h"
  18. #include "firewnd.h"
  19.  
  20. class CFireWnd;
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CPropDlg
  23. class CPropDlg :
  24.     public CDialogImpl<CPropDlg>
  25. {
  26.  
  27. public:
  28.  
  29.  
  30.     CPropDlg(CFireWnd* p);
  31.     ~CPropDlg();
  32.  
  33.     enum { IDD = IDD_PROPDLG };
  34.  
  35. BEGIN_MSG_MAP(CPropDlg)
  36.     MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  37.     COMMAND_HANDLER(IDC_EDIT1, EN_CHANGE, OnPropertyChanged)
  38.     COMMAND_ID_HANDLER(IDOK, OnOK)
  39.     COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
  40.     COMMAND_ID_HANDLER(IDC_APPLY, OnApply)
  41.     NOTIFY_CODE_HANDLER(TVN_SELCHANGED, OnSelChanged)
  42.     NOTIFY_CODE_HANDLER(TVN_SELCHANGING, OnSelChanging)
  43. END_MSG_MAP()
  44.  
  45. // Message/Notification handlers
  46.     LRESULT OnSelChanged(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  47.     LRESULT OnSelChanging(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  48.     LRESULT OnPropertyChanged(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  49.     LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  50.     LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  51.     LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  52.     LRESULT OnApply(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  53.  
  54.     void Apply();
  55.     HWND m_hTreeViewCtl;
  56.     HWND m_hSettingCtl;
  57.     HWND m_hSetting;
  58.     long m_nDecay;
  59.     long m_nFlammability;
  60.     long m_nMaxHeat;
  61.     long m_nSpreadRate;
  62.     long m_nSize;
  63.     long m_nSmoothness;
  64.     long m_nDistribution;
  65.     long m_nChaos;
  66.  
  67.     int m_nCurSel;
  68.  
  69.     CFireWnd* m_Display;
  70. };
  71.  
  72. #endif //__PROPDLG_H_
  73.