home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1995 October / SUPERCD.BIN / PCPLUS / VBWK / VBSPY / HELPAPI.BAS < prev    next >
Encoding:
BASIC Source File  |  1994-11-20  |  912 b   |  39 lines

  1. Option Explicit
  2. DefInt A-Z
  3. '---General module for the Help system
  4. Declare Function winhelp Lib "user" (ByVal hWnd As Integer, ByVal HelpFile$, ByVal wCommand As Integer, ByVal dwData As Any) As Integer
  5.  
  6. Sub Help (context As Long)
  7. HelpGet HELP_CONTEXT, context
  8. End Sub
  9.  
  10. Sub HelpForceFile ()
  11. Dim x%
  12. x% = winhelp(screen.ActiveForm.hWnd, app.HelpFile, HELP_FORCEFILE, " ")
  13. DoEvents
  14. End Sub
  15.  
  16. Sub HelpGet (Cmd As Integer, context As Long)
  17. Dim x%
  18. screen.MousePointer = 11
  19. HelpForceFile
  20. x% = winhelp(screen.ActiveForm.hWnd, app.HelpFile, Cmd, ByVal context)
  21. screen.MousePointer = 0
  22. End Sub
  23.  
  24. Sub HelpKey (context As String)
  25. Dim x%
  26. HelpForceFile
  27. x% = winhelp(screen.ActiveForm.hWnd, app.HelpFile, HELP_KEY, ByVal context)
  28. End Sub
  29.  
  30. Sub HelpQuit ()
  31. Dim x%
  32. x% = winhelp(screen.ActiveForm.hWnd, app.HelpFile, HELP_QUIT, " ")
  33. End Sub
  34.  
  35. Sub HelpSearch ()
  36. HelpGet HELP_PARTIALKEY, 0
  37. End Sub
  38.  
  39.