home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / c / bsscdemo / treedem3 / treedem3.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-28  |  2.9 KB  |  112 lines

  1. /*
  2.    Copyright (c) 1993 by Barking Spider Software, Inc.  All rights reserved.
  3.                                                                            
  4.    Filename...:  treedem3.h
  5.    
  6.    Version....:  1.0
  7.    
  8.    Language...:  Microsoft C/C++ 7.0
  9.    
  10.    Model......:  Small
  11.    
  12.    Environment:  Microsoft Windows 3.1
  13.                                                                            
  14.    Description:  Header for MDI tree control demo 3
  15.                                                                            
  16.    Notes......:  
  17.                                                                            
  18.    History....:
  19.                                                                               
  20.    Author.....:  Peter J. Kaufman
  21. */
  22.  
  23. /* INSTANCE DATA */
  24.  
  25. #define MAX_BITMAP_ID 6
  26.  
  27. typedef struct TreeDataTag
  28. {
  29.    HWND    hwndTree;
  30. }
  31. TREE_DATA;
  32.  
  33. typedef TREE_DATA NEAR *NP_TREE_DATA ;
  34.  
  35.  
  36.  
  37. typedef struct ListDataTag
  38. {
  39.    HWND    hwndTree;
  40. }
  41. LIST_DATA;
  42.  
  43. typedef LIST_DATA NEAR *NP_LIST_DATA ;
  44.  
  45.  
  46.  
  47. typedef struct TreeDatabaseTag
  48. {
  49.    WORD   wIndexOfThisNode;
  50.    WORD   wBitmapIndex;
  51.    WORD   wNumberOfChildren;
  52.    WORD   wIndexOfChildren;
  53.    LPSTR  lpszNodeText;
  54. }
  55. TREE_DATABASE;
  56.  
  57. typedef TREE_DATABASE FAR *LP_TREE_DATABASE ;
  58.  
  59.  
  60.  
  61. #define IDR_CLOSED_FOLDER    200
  62. #define IDR_OPEN_FOLDER      210
  63. #define IDR_SHEET            220
  64.  
  65. #define IDR_API              230
  66. #define IDR_ARG              240
  67. #define IDR_TXT              250
  68. #define IDR_RET              260
  69. #define IDR_DSC              270
  70. #define IDR_COM              280
  71.  
  72. #define IDR_TREEDEMO_ICON    290
  73.  
  74. #define LISTCTRL_WND_EXTRA   2
  75. #define WND_EXTRA_LIST_DATA  0
  76.  
  77. #define TREECTRL_WND_EXTRA   2
  78. #define WND_EXTRA_TREE_DATA  0
  79.  
  80. #define INIT_MENU_POS        0
  81. #define TREECTRL_MENU_POS    1
  82. #define LISTCTRL_MENU_POS    2
  83.  
  84. #define IDM_NEW_LISTCTRL     10
  85. #define IDM_NEW_TREECTRL     11
  86. #define IDM_CLOSE            12
  87. #define IDM_EXIT             13
  88.  
  89. #define IDM_TILE             20
  90. #define IDM_CASCADE          21
  91. #define IDM_ARRANGE          22
  92. #define IDM_CLOSEALL         23
  93.  
  94. #define IDM_FIRSTCHILD       100
  95.  
  96.  
  97. /* PROTOTYPES */
  98. long FAR PASCAL _export FrameWndProc  (HWND, UINT, UINT, LONG) ;
  99. BOOL FAR PASCAL _export CloseEnumProc (HWND, LONG) ;
  100. long FAR PASCAL _export TreeCtrlFrameWndProc  (HWND, UINT, UINT, LONG) ;
  101. long FAR PASCAL _export ListCtrlFrameWndProc  (HWND, UINT, UINT, LONG) ;
  102. BOOL FAR PASCAL _export SysColorChangeEnumProc (HWND, LONG) ;
  103. WORD HandleAddChildrenError( HWND hwnd, WORD wErrCode);
  104. HBITMAP CreateBackgroundMatchedBitmap (DWORD dwrgbBackground,
  105.                                        int nBitmapResouce);
  106. short ChangeBitmapToMatchBackground ( DWORD dwrgbBackground,
  107.                                       HANDLE hBitmap,
  108.                                       int nBitmapResouce);
  109. short ReadInDatabases ( void );
  110.  
  111. /*--------------------------------- EOF -----------------------------------*/
  112.