|
//
// optiontree.h
//
// (C) Copyright 2002 by Jan van den Baard.
// All Rights Reserved.
//
// Option treeview.
//
// OptionTree class.
class OptionTree : public ClsTreeView
{
_NO_COPY( OptionTree );
public:
// Construction/destruction.
OptionTree();
virtual ~OptionTree();
// Implementation.
BOOL Initialize();
BOOL SetOptions( LPPARSER lpp );
protected:
// Overidables.
virtual LRESULT OnClick( LPNMHDR pNMHDR, BOOL& bNotifyParent );
virtual LRESULT OnSelChanged( LPNMTREEVIEW pTreeView, BOOL& bNotifyParent );
virtual LRESULT OnItemExpanding( LPNMTREEVIEW pTreeView, BOOL& bNotifyParent );
// Helpers.
BOOL AddOption( LPCTSTR pszName );
BOOL SetOption( LPCTSTR pszName, LPBOOL pStorage );
BOOL AddSubOption( LPCTSTR pszParent, LPCTSTR pszName );
BOOL SetSubOption( LPCTSTR pszParent, LPCTSTR pszName, LPBOOL pStorage );
HTREEITEM FindOption( LPCTSTR pszName, HTREEITEM hItem = NULL );
BOOL SetCheckState( HTREEITEM hItem, BOOL bChecked );
BOOL GetCheckState( HTREEITEM hItem );
// Data.
TCHAR m_szText[ 4096 ]; // Item text buffer.
LPPARSER m_pParser; // Current parser.
};
|
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.
I have been programming for a hobby since 1985. I have started programming on the C= 64. After that I migrated to the C= Amiga which I traded in for a PC back in 1997 I believe. Back in 2000 I decided to lose a hobby and start developing software for a living.
Currently I am working mainly in developing software for building security and access control systems.