home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / power.zip / DYNOHELP.H < prev    next >
Text File  |  1994-11-09  |  5KB  |  80 lines

  1. /*______________________________________________________________________
  2. | DYNOHELP.H  Version 1.00   Copyright 94 Greg Ratajik                  |
  3. |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  4. |  This header file is used for linking to the Dynamic Help API Set     |
  5. |                                                                       |
  6. |         DynoCreateButton - Creates Dynamic help for the passed window |
  7. |                                                                       |
  8. |           DynoGetVersion - Returned the version the DLL was compiled  |
  9. |                            with.                                      |
  10. |                                                                       |
  11. |                                                                       |
  12. |  Messages:                                                            |
  13. |  ------------------------------------------------------------------   |
  14. |  WM_DYNO_CHANGE          - Change the help text for the passed        |
  15. |                            handle.                                    |
  16. |                                                                       |
  17. |                                                                       |
  18. |                            WinSendMsg(hWndDyno,                       |
  19. |                                       WM_DYNO_CHANGE,                 |
  20. |                                       szText, 0);                     |
  21. |                                                                       |
  22. |  WM_DYNO_DELETE          - Delete the passed Dynamic Help             |
  23. |                                                                       |
  24. |                            WinSendMsg(hWndDyno,                       |
  25. |                                       WM_DYNO_DELETE,                 |
  26. |                                       0, 0);                          |
  27. |                                                                       |
  28. |  Defines:                                                             |
  29. |  ------------------------------------------------------------------   |
  30. |  DYNOHELP_DYNAMIC_LINK  - Using this preps the information to         |
  31. |                           to dynamically load the DYNOHELP.DLL        |
  32. |                           If this define isn't used, the information  |
  33. |                           will be for statically linked DLL or OBJ.   |
  34. |                                                                       |
  35. |  DYNOS_MAJOR_VERSION    - This can be used to validate that you       |
  36. |                           compiled using the same version of this     |
  37. |                           header. If you call DynoGetVersion,and get a|
  38. |                           version other than the one you compiled with|
  39. |                           DO NOT USE.                                 |
  40. |                                                                       |
  41. | Version Release  Date       Change                                    |
  42. | ------- -------  ---------  ----------------------------------------  |
  43. | 0.05             06/26/94   Created public header file for obj/dll acc|
  44. | 1.00             08/18/94   Added dynamic load access/defines         |
  45. | 1.01             11/09/94   Added WM_DYNO_DELETE                      |
  46. |_____________________________________________________________________*/
  47. #ifndef DYNOHELP_INCLUDED
  48.     #define DYNOHELP_INCLUDED
  49.  
  50.     /*_______________________________
  51.     |                                |
  52.     | If the major version is not the|
  53.     | same as the one compiled with, |
  54.     | don't use - Linkage has changed|
  55.     |______________________________*/
  56.     #define DYNO_MAJOR_VERSION 0
  57.  
  58.     #define WM_DYNO_CHANGE  1997
  59.     #define WM_SHOW_DYNO    1998
  60.     #define WM_DYNO_DELETE  1999
  61.  
  62.     #ifndef DYNOHELP_DYNAMIC_LINK
  63.         VOID APIENTRY DynoCreateHelp ( HWND,      /* Handle of Dialog      */
  64.                                        HWND,      /* Handle of control     */
  65.                                        PCHAR,     /* Status bar text       */
  66.                                        USHORT,    /* ID of status bar      */
  67.                                        BOOL );    /* ID of status bar      */
  68.  
  69.         USHORT APIENTRY DynoGetVersion ( VOID  ); /* DLL Version           */
  70.     #else
  71.         #define DYNO_MODULE_NAME  "DYNOHELP"        /* DLL Name            */
  72.         #define DYNO_CREATE_NAME  "DYNOCREATEHELP"  /* API Create Name     */
  73.         #define DYNO_VERSION_NAME "DYNOGETVERSION"  /* API Version Name    */
  74.  
  75.         PFN DynoCreateHelp; /* Use DosLoadModule/DosQueryProcAddr to get   */
  76.         PFN DynoGetVersion;
  77.  
  78.     #endif
  79. #endif
  80.