|
#pragma once
class CComboTree : public CTreeCtrl
{
public:
CComboTree()
{
m_pCombo = NULL;
m_allowfolders = TRUE;
}
virtual ~CComboTree()
{
}
void SetCombo(CComboBox *pCombo)
{
m_pCombo = pCombo;
}
CComboBox * GetCombo()
{
return m_pCombo;
}
void AllowFolders(BOOL allow)
{
m_allowfolders = allow;
}
private:
CComboBox *m_pCombo;
BOOL m_allowfolders;
//{{AFX_VIRTUAL(CComboTree)
//}}AFX_VIRTUAL
protected:
//{{AFX_MSG(CComboTree)
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnKillFocus(CWnd* pNewWnd);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnItemexpanded(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
System developer from Argentina.
Programmed in VB 5,6,.NET, C#, Java, PL-SQL, Transac-SQL, C, C++ and even some "calculator" language.
Love to build small, useful applications.
Usually building big and complicated apps based on solid, reliable components.
Hobbies: reading, photography, chess, paddle, running.