home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: WPS_PM / WPS_PM.zip / xfld085s.zip / treesize / treesize.h < prev    next >
Text File  |  1998-11-26  |  2KB  |  73 lines

  1. /*
  2.  * treesize.h:
  3.  *      header file for treesize.h.
  4.  *
  5.  *      Copyright (C) 1997-98 Ulrich Möller.
  6.  *      This program is free software; you can redistribute it and/or modify
  7.  *      it under the terms of the GNU General Public License as published by
  8.  *      the Free Software Foundation, in version 2 as it comes in the COPYING
  9.  *      file of the XFolder main distribution.
  10.  *      This program is distributed in the hope that it will be useful,
  11.  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  *      GNU General Public License for more details.
  14.  */
  15.  
  16. #define SV_SIZE             1
  17. #define SV_EASIZE           2
  18. #define SV_NAME             3
  19.  
  20. #define SD_BYTES            1
  21. #define SD_KBYTES           2
  22. #define SD_MBYTES           3
  23.  
  24. typedef struct _DIRINFO {
  25.     struct _DIRINFO     *pParent;
  26.     CHAR                szFullPath[CCHMAXPATH]; // "F:\OS2"
  27.     CHAR                szThis[CCHMAXPATH];     // "OS2"
  28.     CHAR                szRecordText[CCHMAXPATH+50];          // what appears in the cnr
  29.     double              dTotalSize;
  30.     double              dTotalEASize;
  31.     ULONG               ulRecursionLevel;       // 1 for root level
  32.     PRECORDCORE         precc;      // PSIZERECORDCORE actually
  33. } DIRINFO, *PDIRINFO;
  34.  
  35. /* extended RECORDCORE structure */
  36. typedef struct _SIZERECORDCORE {
  37.     RECORDCORE     recc;
  38.     PDIRINFO       pdi;
  39.     BOOL           fDisplayValid;        // TRUE only if display is valid
  40. } SIZERECORDCORE, *PSIZERECORDCORE;
  41.  
  42. #define ID_TSD_MAIN         200
  43. #define ID_TSDI_CNR         201
  44. #define ID_TSDI_TEXT1       202
  45. #define ID_TSDI_ICON        203
  46. #define DID_CLEAR           204
  47.  
  48. #define ID_TSD_PRODINFO     250
  49.  
  50. #define ID_TSM_CONTEXT      300
  51. #define ID_TSM_SORT         301
  52. #define ID_TSMI_SORTBYNAME  302
  53. #define ID_TSMI_SORTBYSIZE  303
  54. #define ID_TSMI_SORTBYEASIZE 304
  55. #define ID_TSMI_COLLECTEAS  305
  56. #define ID_TSMI_LOWPRTY     306
  57. #define ID_TSM_SIZES        310
  58. #define ID_TSMI_SIZE_BYTES  311
  59. #define ID_TSMI_SIZE_KBYTES 312
  60. #define ID_TSMI_SIZE_MBYTES 313
  61.  
  62. #define ID_TSMI_PRODINFO    320
  63.  
  64. #define ID_ICON             1000
  65.  
  66. #define WM_START            WM_USER
  67. #define WM_BEGINDIRECTORY   WM_USER+1
  68. #define WM_DONEDIRECTORY    WM_USER+2
  69. #define WM_DONEWITHALL      WM_USER+3
  70.  
  71.  
  72.  
  73.