TreeCtrlDlg.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #include "DlgControlItem.h"
  3. // CTreeCtrlDlg 对话框
  4. class CTreeCtrlDlg : public CDlgControlItem
  5. {
  6. DECLARE_DYNAMIC(CTreeCtrlDlg)
  7. protected:
  8. CTreeCtrl m_TreeCtrl;
  9. CSkinTreeCtrl m_TreeCtrl1;
  10. CImageList m_StatusImage;
  11. public:
  12. CTreeCtrlDlg(CWnd* pParent = NULL); // 标准构造函数
  13. virtual ~CTreeCtrlDlg();
  14. protected:
  15. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  16. int SetItemHeight(HTREEITEM hItem);
  17. void ExpandAllItem(CTreeCtrl *pTreeCtrl,HTREEITEM hTreeItem,bool bExpand = true);
  18. DECLARE_MESSAGE_MAP()
  19. public:
  20. virtual BOOL OnInitDialog();
  21. void InitTree();
  22. afx_msg void OnBnClickedButton1();
  23. afx_msg void OnBnClickedButton14();
  24. afx_msg void OnBnClickedButton2();
  25. afx_msg void OnBnClickedButton3();
  26. afx_msg void OnBnClickedButton4();
  27. afx_msg void OnBnClickedButton5();
  28. afx_msg void OnBnClickedButton10();
  29. afx_msg void OnBnClickedButton11();
  30. afx_msg void OnBnClickedButton21();
  31. afx_msg void OnBnClickedButton22();
  32. afx_msg void OnBnClickedButton7();
  33. afx_msg void OnBnClickedButton13();
  34. void RemoveCheck( HTREEITEM hTreeItem );
  35. void SetStyle( UINT ID,DWORD dwStyle,DWORD &dwAddStyle, DWORD &dwRemoveStyle );
  36. };