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

  1. // TreeCtrlPage.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. // CTreeCtrlPage dialog
  16. #ifndef INC_TRCPAGE_H
  17. #define INC_TRCPAGE_H
  18.  
  19. #include "mtreectl.h"
  20. #include "notifwdw.h"
  21.  
  22. class CTreeCtrlPage : public CPropertyPage
  23. {
  24.     DECLARE_DYNCREATE(CTreeCtrlPage)
  25.  
  26. // Construction
  27. public:
  28.     CTreeCtrlPage();
  29.     ~CTreeCtrlPage();
  30.  
  31. // Dialog Data
  32.     //{{AFX_DATA(CTreeCtrlPage)
  33.     enum { IDD = IDD_TREECTRL };
  34.     CNotifyShowCase m_notifshowcase;
  35.     CMyTreeCtrl m_mytreectrl;
  36.     BOOL    m_bDisableDragDrop;
  37.     BOOL    m_bHasButtons;
  38.     BOOL    m_bHasLines;
  39.     BOOL    m_bLinesAtRoot;
  40.     BOOL    m_bEditLabels;
  41.     BOOL    m_bShowSelAlways;
  42.     CString m_cstrStatus;
  43.     BOOL    m_bSingleExpand;
  44.     //}}AFX_DATA
  45.  
  46.  
  47.     HTREEITEM   m_rghItem[12];
  48.     HTREEITEM   m_hitemDrag;
  49.     HTREEITEM   m_hitemDrop;
  50.  
  51. // Overrides
  52.     // ClassWizard generate virtual function overrides
  53.     //{{AFX_VIRTUAL(CTreeCtrlPage)
  54.     protected:
  55.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  56.     virtual BOOL OnInitDialog();
  57.     //}}AFX_VIRTUAL
  58.  
  59. // Implementation
  60. public:
  61.     // Generated message map functions
  62.     //{{AFX_MSG(CTreeCtrlPage)
  63.     afx_msg void OnEditLabels();
  64.     afx_msg void OnHasButtons();
  65.     afx_msg void OnHasLines();
  66.     afx_msg void OnLinesAtRoot();
  67.     afx_msg void OnDisabledDragDrop();
  68.     afx_msg void OnShowSelAlways();
  69.     afx_msg void ShowNotification(LPNMHDR pnmhdr, LRESULT *pLResult);
  70.     afx_msg void OnSingleExpand();
  71.     //}}AFX_MSG
  72.     DECLARE_MESSAGE_MAP()
  73.  
  74. };
  75.  
  76. #endif
  77.