home *** CD-ROM | disk | FTP | other *** search
- /*
- * BCTree.h
- * $Header: /bcsample/BUGBNCHX/MAINERR/BCTREE.H 1 5/28/96 1:11p Dave $
- *
- * Description:
- * Routines that mimic the MFC CTreeCtrl with several extensions
- * to the standard class. These are things like the ability to expand
- * and collapse all nodes, and a function to get the LPARAM data out
- * of the currently selected node.
- *
- * Notes:
- * <implementation notes go here>
- *
- ***********************************************************************
- *
- * Nu-Mega Technologies, Inc.
- * P.O. Box 7780
- * Nashua, NH 03060
- *
- * (c) Copyright 1994, 1995 Nu-Mega Technologies, Inc.
- * ALL RIGHTS RESERVED.
- *
- ***********************************************************************
- *
- **********************************************************************/
- #ifndef _BCTREE_H
- #define _BCTREE_H
-
- #include "Debug.h"
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- /////////////////////////////////////////////////////////////////////
- // Tree control support
-
- HTREEITEM TreeCtrl_InsertItem ( HWND hWnd ,
- LPTV_INSERTSTRUCT lpInsertStruct ) ;
- BOOL TreeCtrl_DeleteAllItems ( HWND hWnd ) ;
- HTREEITEM TreeCtrl_GetParentItem ( HWND hWnd ,
- HTREEITEM hItem ) ;
- BOOL TreeCtrl_GetItem ( HWND hwnd ,
- TV_ITEM* pItem ) ;
- HTREEITEM TreeCtrl_GetChildItem ( HWND hWnd , HTREEITEM hItem ) ;
- HTREEITEM TreeCtrl_GetSelectedItem ( HWND hWnd ) ;
- HTREEITEM TreeCtrl_GetNextItem ( HWND hWnd ,
- HTREEITEM hItem ,
- UINT nCode ) ;
- BOOL TreeCtrl_Expand ( HWND hWnd ,
- HTREEITEM hItem ,
- UINT nCode ) ;
- HTREEITEM TreeCtrl_Select ( HWND hWnd ,
- HTREEITEM hItem ,
- UINT nCode ) ;
- BOOL TreeCtrl_EnsureVisible ( HWND hWnd ,
- HTREEITEM hItem ) ;
-
- /////////////////////////////////////////////////////////////////////
- // Custom tree control support
- void TreeCtrl_ExpandAll ( HWND hWnd ,
- UINT nCode ) ;
- void TreeCtrl_ExpandCollapseAllBelow ( HWND hWnd ,
- HTREEITEM hItem ,
- UINT nCode ) ;
- LPVOID TreeCtrl_GetSelectedLParam ( HWND hWnd ) ;
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif // _BCTREE_H
-
-