home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / numega / sc501.exe / data1.cab / Examples / BCTREE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-25  |  2.7 KB  |  74 lines

  1. /*
  2.  * BCTree.h
  3.  * $Header: /bcsample/BUGBNCHX/MAINERR/BCTREE.H 1     5/28/96 1:11p Dave $
  4.  *
  5.  * Description:
  6.  *  Routines that mimic the MFC CTreeCtrl with several extensions
  7.  * to the standard class.  These are things like the ability to expand
  8.  * and collapse all nodes, and a function to get the LPARAM data out
  9.  * of the currently selected node.
  10.  *
  11.  * Notes:
  12.  *  <implementation notes go here>
  13.  *
  14.  ***********************************************************************
  15.  *
  16.  * Nu-Mega Technologies, Inc.
  17.  * P.O. Box 7780
  18.  * Nashua, NH 03060
  19.  *
  20.  * (c) Copyright 1994, 1995 Nu-Mega Technologies, Inc.
  21.  * ALL RIGHTS RESERVED.
  22.  *
  23.  ***********************************************************************
  24.  *
  25.  **********************************************************************/
  26. #ifndef _BCTREE_H
  27. #define _BCTREE_H
  28.  
  29. #include "Debug.h"
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. /////////////////////////////////////////////////////////////////////
  36. // Tree control support
  37.  
  38. HTREEITEM TreeCtrl_InsertItem      ( HWND hWnd                        , 
  39.                                      LPTV_INSERTSTRUCT lpInsertStruct  ) ;
  40. BOOL      TreeCtrl_DeleteAllItems  ( HWND hWnd ) ;
  41. HTREEITEM TreeCtrl_GetParentItem   ( HWND hWnd       , 
  42.                                      HTREEITEM hItem  ) ;
  43. BOOL      TreeCtrl_GetItem         ( HWND hwnd      , 
  44.                                      TV_ITEM* pItem  ) ;
  45. HTREEITEM TreeCtrl_GetChildItem    ( HWND hWnd , HTREEITEM hItem ) ;
  46. HTREEITEM TreeCtrl_GetSelectedItem ( HWND hWnd ) ;
  47. HTREEITEM TreeCtrl_GetNextItem     ( HWND hWnd       , 
  48.                                      HTREEITEM hItem , 
  49.                                      UINT nCode       ) ;
  50. BOOL      TreeCtrl_Expand          ( HWND hWnd       , 
  51.                                      HTREEITEM hItem , 
  52.                                      UINT nCode       ) ;
  53. HTREEITEM TreeCtrl_Select          ( HWND hWnd       , 
  54.                                      HTREEITEM hItem , 
  55.                                      UINT nCode       ) ;
  56. BOOL      TreeCtrl_EnsureVisible   ( HWND hWnd       , 
  57.                                      HTREEITEM hItem  ) ;
  58.  
  59. /////////////////////////////////////////////////////////////////////
  60. // Custom tree control support
  61. void     TreeCtrl_ExpandAll              ( HWND hWnd , 
  62.                                            UINT nCode ) ;
  63. void     TreeCtrl_ExpandCollapseAllBelow ( HWND hWnd       ,
  64.                                            HTREEITEM hItem ,
  65.                                            UINT      nCode  ) ;
  66. LPVOID   TreeCtrl_GetSelectedLParam      ( HWND hWnd ) ;
  67.  
  68. #ifdef __cplusplus
  69. }
  70. #endif
  71.  
  72. #endif      // _BCTREE_H
  73.  
  74.