home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / NBBASE.ZIP / NBBASE.H < prev    next >
Text File  |  1993-02-23  |  3KB  |  74 lines

  1. /*********************************************************************
  2.  *                                                                   *
  3.  * MODULE NAME :  nbbase.h               AUTHOR:  Rick Fishman       *
  4.  * DATE WRITTEN:  10-17-92                                           *
  5.  *                                                                   *
  6.  * DESCRIPTION:                                                      *
  7.  *                                                                   *
  8.  *  Common definitions and function prototypes for NBBASE.EXE        *
  9.  *                                                                   *
  10.  * HISTORY:                                                          *
  11.  *                                                                   *
  12.  *  10-17-92 - File Created                                          *
  13.  *  12-04-92 - Got rid of ulPageId and hwndDlg from NBPAGE structure *
  14.  *                                                                   *
  15.  *  Rick Fishman                                                     *
  16.  *  Code Blazers, Inc.                                               *
  17.  *  4113 Apricot                                                     *
  18.  *  Irvine, CA. 92720                                                *
  19.  *  CIS ID: 72251,750                                                *
  20.  *                                                                   *
  21.  *********************************************************************/
  22.  
  23. #define ID_NBWINFRAME           1
  24. #define ID_NB                   10
  25.  
  26. #define IDD_PAGE1               1000
  27. #define EF_1                    1001
  28.  
  29. #define IDD_PAGE2               2000
  30.  
  31. #define IDD_PAGE2A              2100
  32. #define EF_2A                   2101
  33.  
  34. #define IDD_PAGE2B              2200
  35. #define EF_2B                   2201
  36.  
  37. #define IDD_PAGE3               3000
  38. #define EF_3                    3001
  39.  
  40. #define DEBUG_FILENAME          "nbbase.dbg"
  41.  
  42. #define NOTEBOOK_WINCLASS       "NoteBookSample"
  43.  
  44. #define PROGRAM_TITLE           "Notebook Control Sample Program"
  45.  
  46. #define HABERR( hab )           (ERRORIDERROR( WinGetLastError( hab ) ))
  47.  
  48. #define ANCHOR( hwnd )          (WinQueryAnchorBlock( hwnd ))
  49.  
  50. #define HWNDERR( hwnd )         \
  51.             (ERRORIDERROR( WinGetLastError( WinQueryAnchorBlock( hwnd ) ) ))
  52.  
  53. #define INSTDATA( hwnd )        (WinQueryWindowPtr( hwnd, 0 ))
  54.  
  55. #define PARENT( hwnd )          (WinQueryWindow( hwnd, QW_PARENT ))
  56.  
  57. #define BOOKFRAME(hwnd)         (PARENT(PARENT(hwnd)))
  58.  
  59. typedef struct _NBPAGE              // VARIABLES USED FOR A NOTEBOOK PAGE
  60. {
  61.     PFNWP    pfnwpDlg;              // Window procedure address for the dialog
  62.     PSZ      szStatusLineText;      // Text to go on status line
  63.     PSZ      szTabText;             // Text to go on major tab
  64.     ULONG    idDlg;                 // ID of the dialog box for this page
  65.     ULONG    idFocus;               // ID of the control to get the focus first
  66.     BOOL     fParent;               // Is this a Parent page with minor pages
  67.     USHORT   usTabType;             // BKA_MAJOR or BKA_MINOR
  68.  
  69. } NBPAGE, *PNBPAGE;
  70.  
  71. /****************************************************************************
  72.  *                        E N D   O F   S O U R C E                         *
  73.  ****************************************************************************/
  74.