Files
envi-code/SourceCode/Code2026/shsTK/CoolTreeCtrl.h
T
2026-09-28 15:28:50 +08:00

60 lines
1.5 KiB
C++

//////////////////////////////////////////////////////////////////////////
// 文件列表视图, 在CMainFrame中创建
// 创建人: 周风生
//////////////////////////////////////////////////////////////////////////
#if !defined(AFX_COOLTREECTRL_H__BCFAA947_954D_4D26_B4D2_0E8BF7A68C78__INCLUDED_)
#define AFX_COOLTREECTRL_H__BCFAA947_954D_4D26_B4D2_0E8BF7A68C78__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif
/////////////////////////////////////////////////////////////////////////////
// CCoolTreeCtrl window
class CCoolTreeCtrl : public CTreeCtrl
{
public:
CCoolTreeCtrl();
public:
HTREEITEM viewItemByText( HTREEITEM hRootItem,CString sText);
void SetSltDwgFile(LPCTSTR pszFolder, LPCTSTR pszDwg);
CString m_sCurParentText;
CString m_sCurSltText;
BOOL SetBKImage(LPCTSTR LpszResource);
public:
//{{AFX_VIRTUAL(CCoolTreeCtrl)
protected:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
public:
virtual ~CCoolTreeCtrl();
protected:
BOOL m_bTracking;
CBitmap m_bitmap;
//{{AFX_MSG(CCoolTreeCtrl)
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnSelchanging(NMHDR* pNMHDR, LRESULT* pResult);
// afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnPaint();
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnDeldir();
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
HTREEITEM m_hSelectItem;
LRESULT OnMouseLeave(WPARAM wParam, LPARAM lParam);
};
#endif