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

  1. /*********************************************************************
  2.  *                                                                   *
  3.  * MODULE NAME :  nbload.h               AUTHOR:  Rick Fishman       *
  4.  * DATE WRITTEN:  10-18-92                                           *
  5.  *                                                                   *
  6.  * DESCRIPTION:                                                      *
  7.  *                                                                   *
  8.  *  Common definitions and function prototypes for NBLOAD.EXE        *
  9.  *                                                                   *
  10.  * HISTORY:                                                          *
  11.  *                                                                   *
  12.  *  10-18-92 - File Created                                          *
  13.  *                                                                   *
  14.  *  Rick Fishman                                                     *
  15.  *  Code Blazers, Inc.                                               *
  16.  *  4113 Apricot                                                     *
  17.  *  Irvine, CA. 92720                                                *
  18.  *  CIS ID: 72251,750                                                *
  19.  *                                                                   *
  20.  *********************************************************************/
  21.  
  22. #define ID_NBWINFRAME           1
  23. #define ID_NB                   10
  24.  
  25. #define IDD_PAGE1               1000
  26. #define EF_1                    1001
  27.  
  28. #define IDD_PAGE2               2000
  29. #define IDD_PAGE2A              2100
  30. #define EF_2A                   2101
  31. #define IDD_PAGE2B              2200
  32. #define EF_2B                   2201
  33.  
  34. #define IDD_PAGE3               3000
  35. #define EF_3                    3001
  36.  
  37. #define IDD_PAGE4               4000
  38. #define IDD_PAGE4A              4100
  39. #define EF_4A                   4101
  40. #define IDD_PAGE4B              4200
  41. #define EF_4B                   4201
  42. #define IDD_PAGE4C              4300
  43. #define EF_4C                   4301
  44. #define IDD_PAGE4D              4400
  45. #define EF_4D                   4401
  46.  
  47. #define IDD_PAGE5               5000
  48. #define EF_5                    5001
  49.  
  50. #define IDD_PAGE6               6000
  51. #define IDD_PAGE6A              6100
  52. #define EF_6A                   6101
  53. #define IDD_PAGE6B              6200
  54. #define EF_6B                   6201
  55. #define IDD_PAGE6C              6300
  56. #define EF_6C                   6301
  57.  
  58. #define IDD_PAGE71              7100
  59. #define EF_71                   7101
  60. #define IDD_PAGE72              7200
  61. #define EF_72                   7201
  62. #define IDD_PAGE73              7300
  63. #define EF_73                   7301
  64. #define IDD_PAGE74              7400
  65. #define EF_74                   7401
  66.  
  67. #define DEBUG_FILENAME          "nbload.dbg"
  68.  
  69. #define NOTEBOOK_WINCLASS       "NoteBookSample"
  70.  
  71. #define PROGRAM_TITLE           "Notebook Control Sample Loading Program"
  72.  
  73. #define HABERR( hab )           (ERRORIDERROR( WinGetLastError( hab ) ))
  74.  
  75. #define ANCHOR( hwnd )          (WinQueryAnchorBlock( hwnd ))
  76.  
  77. #define HWNDERR( hwnd )         \
  78.             (ERRORIDERROR( WinGetLastError( WinQueryAnchorBlock( hwnd ) ) ))
  79.  
  80. #define INSTDATA( hwnd )        (WinQueryWindowPtr( hwnd, 0 ))
  81.  
  82. #define PARENT( hwnd )          (WinQueryWindow( hwnd, QW_PARENT ))
  83.  
  84. #define GRANDPARENT( hwnd )   (WinQueryWindow( WinQueryWindow(hwnd, QW_PARENT)))
  85.  
  86. typedef struct _NBPAGE              // VARIABLES USED FOR A NOTEBOOK PAGE
  87. {
  88.     PFNWP    pfnwpDlg;              // Window procedure address for the dialog
  89.     PSZ      szStatusLineText;      // Text to go on status line
  90.     PSZ      szTabText;             // Text to go on major tab
  91.     ULONG    idDlg;                 // ID of the dialog box for this page
  92.     ULONG    idFocus;               // ID of the control to get the focus first
  93.     BOOL     fParent;               // Is this a Parent page with minor pages
  94.     USHORT   usTabType;             // BKA_MAJOR or BKA_MINOR
  95.  
  96. } NBPAGE, *PNBPAGE;
  97.  
  98. /****************************************************************************
  99.  *                        E N D   O F   S O U R C E                         *
  100.  ****************************************************************************/
  101.