home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / CNRSAMP.ZIP / CNRBAS.ZIP / CNRBAS.H < prev    next >
Text File  |  1992-12-12  |  2KB  |  57 lines

  1. /* Defines for sample program */
  2. #define CNR_SAMPLE_ID   100
  3.  
  4. #define SAMPLE_MENU_ID        201
  5. #define SAMPLE_MAIN_MENU      202
  6. #define TEXTV_ID              203
  7. #define TEXTV_FLOWED_ID       204
  8. #define NAMEV_ID              205
  9. #define NAMEV_FLOWED_ID       206
  10. #define ICONV_ID              207
  11. #define TREEV_ID              208
  12. #define DETAILSV_ID           209
  13. #define SAMPLE_MAIN_EXIT      210
  14. #define SAMPLE_MENU_QUIT      211
  15.  
  16. #define ID_PERSON_ICON  300
  17. #define ID_JOB_ICON     301
  18.  
  19. #define TEXT_SIZE  40
  20. #define JR_DEVELOPMENT  1
  21. #define JR_SUPPORT      2
  22.  
  23. /* Structures for sample program */
  24. typedef struct _SAMPLEINFO
  25. {
  26.   HWND        hwndCnr;
  27.   HPOINTER    hptrPersonIcon;
  28.   HPOINTER    hptrJobIcon;
  29.   PFIELDINFO  pFieldInfoLast;
  30.   BOOL        bTreePopulated;
  31.   PSZ         pszCnrTitle;
  32. } SAMPLEINFO;
  33. typedef SAMPLEINFO *PSAMPLEINFO;
  34.  
  35. typedef struct _PERSONRECORD
  36. {
  37.   MINIRECORDCORE  MiniRec;          /* Container record               */
  38.   CDATE           DateOfBirth;      /* Date of birth field            */
  39.   CTIME           TimeOfBirth;      /* Time of birth field            */
  40.   ULONG           CurrentAge;       /* Current age field              */
  41.   PSZ             pszMiddleInit;    /* Pointer to middle initial data */
  42.   CHAR            szMiddleInit[2];  /* Middle initial data            */
  43.   USHORT          usJob;            /* Main job responsibility.       */
  44. } PERSONRECORD;
  45. typedef PERSONRECORD *PPERSONRECORD;
  46.  
  47. /* Function prototypes for functions contained in cnrbas.c */
  48. MRESULT EXPENTRY CnrSampleWndProc (HWND hwnd, ULONG msg,
  49.                                    MRESULT mp1, MRESULT mp2);
  50. BOOL CreateCnr (HWND hwnd);
  51. BOOL PopulateCnr (HWND hwnd);
  52. BOOL SetupAndAddFieldInfos (HWND hwnd);
  53. BOOL PopulateTree (HWND hwnd);
  54. BOOL AddChildren (HWND hwnd, PPERSONRECORD pParentRec);
  55. VOID CleanupCnr (HWND hwnd);
  56. VOID CleanupChildren (HWND hwnd, PPERSONRECORD pParentRec);
  57.