home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / videotlk.zip / SAMPLES / EX5 / HELPFUNC.H < prev    next >
Text File  |  1995-08-31  |  4KB  |  78 lines

  1.  
  2. /*------------------------------------------------------------------*
  3.  *                                                                  *
  4.  *  Video Toolkit For OS/2 Version 1.0                              *
  5.  *  Example Application No. 4.                                      *
  6.  *  Written by Stephen Sloan.                                       *
  7.  *  Date : 22/02/95.                                                *
  8.  *  Copyright (c) Abbotsbury Software Ltd., United Kingdom. 1995.   *
  9.  *                                                                  *
  10.  *  Filename : helpfunc.h                                           *
  11.  *                                                                  *
  12.  *------------------------------------------------------------------*/
  13.  
  14.             /* String resource IDs */
  15. #define HELP_BASE                   (0x2500)
  16. #define IDS_TITLEBAR                (HELP_BASE + 1)
  17. #define IDS_CANNOTLOADSTRING        (HELP_BASE + 10)
  18. #define IDS_HELPLIBRARYNAME         (HELP_BASE + 20)
  19. #define IDS_HELPWINDOWTITLE         (HELP_BASE + 21)
  20. #define IDS_HELPLOADERROR           (HELP_BASE + 22)
  21. #define IDS_HELPDISPLAYERROR        (HELP_BASE + 23)
  22. #define IDS_HELPMANAGERERROR        (HELP_BASE + 24)
  23. #define IDS_ERRORMSG                (HELP_BASE + 27)
  24. #define IDS_UNKNOWNMSG              (HELP_BASE + 28)
  25. #define IDS_ERROR_READ              (HELP_BASE + 29)
  26. #define IDS_ERROR_OUTOFMEMORY       (HELP_BASE + 30)
  27. #define IDS_ERROR_TITLE             (HELP_BASE + 31)
  28.  
  29.             /* Help menu resource IDs */
  30. #define IDM_HELP                    (HELP_BASE + 40)
  31. #define IDM_USINGHELP               (HELP_BASE + 41)
  32. #define IDM_GENERALHELP             (HELP_BASE + 42)
  33. #define IDM_HELPINDEX               (HELP_BASE + 43)
  34. #define IDM_HELPABOUT               (HELP_BASE + 44)
  35. #define IDM_HELPPRODUCTINFO         (HELP_BASE + 45)
  36. #define IDM_TUTORIAL                (HELP_BASE + 46)
  37. #define IDM_KEYSHELP                (HELP_BASE + 47)
  38. #define IDM_HELPCONTENTS            (HELP_BASE + 48)
  39.  
  40.             /* Help table resource IDs */
  41. #define HELP_TABLE                  (HELP_BASE + 50)
  42. #define SUBTABLE_MAIN               (HELP_BASE + 51)
  43. #define SUBTABLE_PRODUCTINFODLG     (HELP_BASE + 49)
  44. #define PANEL_MAIN                  (HELP_BASE + 52)
  45. #define PANEL_HELP                  (HELP_BASE + 53)
  46. #define PANEL_GENERALHELP           (HELP_BASE + 54)
  47. #define PANEL_USINGHELP             (HELP_BASE + 55)
  48. #define PANEL_TUTORIAL              (HELP_BASE + 56)
  49. #define PANEL_KEYSHELP              (HELP_BASE + 57)
  50. #define PANEL_HELPINDEX             (HELP_BASE + 58)
  51. #define PANEL_HELPPRODUCTINFO       (HELP_BASE + 59)
  52. #define PANEL_PRODUCTINFO_OK        (HELP_BASE + 60)
  53. #define PANEL_EXTENDED_CONTENTS     (HELP_BASE + 52)
  54. #define PANEL_PRODUCTINFODLG        (HELP_BASE + 61)
  55. #define PANEL_HELPCONTENTS          (HELP_BASE + 62)
  56.  
  57. #define IDD_PRODUCTINFO             (HELP_BASE + 63)
  58.  
  59. #define MSGBOXID                    (HELP_BASE + 100)
  60.  
  61. #define HELPLIBRARYNAMELEN          (20)
  62. #define MESSAGELEN                  (80)
  63.  
  64.                         /* IPF functions */
  65. extern  VOID    DestroyHelpInstance (VOID);
  66. extern  VOID    DisplayHelpPanel (SHORT);
  67. extern  VOID    HelpExtended (VOID);
  68. extern  VOID    HelpKeys (VOID);
  69. extern  VOID    HelpHelpForHelp (VOID);
  70. extern  VOID    HelpIndex (VOID);
  71. extern  VOID    HelpContents (VOID);
  72. extern  VOID    HelpAbout(VOID);
  73. extern  VOID    HelpTutorial (VOID);
  74. extern  VOID    InitHelp (VOID);
  75. extern  VOID    HelpInit (HWND);
  76. extern  MRESULT EXPENTRY AboutDlgProc (HWND hwndDlg, ULONG msg,
  77.                                        MPARAM mp1, MPARAM mp2);
  78.