home *** CD-ROM | disk | FTP | other *** search
/ distrib.akp.su/Programming/Vb-6+Rus/ / distrib.akp.su.tar / distrib.akp.su / Programming / Vb-6+Rus / VB98 / TEMPLATE / MENUS / HELPMENU.FRM (.txt) < prev    next >
Visual Basic Form  |  1998-06-18  |  2KB  |  52 lines

  1. VERSION 5.00
  2. Begin VB.Form frmHelpMenu 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   2652
  5.    ClientLeft      =   -9996
  6.    ClientTop       =   4056
  7.    ClientWidth     =   4800
  8.    LinkTopic       =   "Form1"
  9.    ScaleHeight     =   2652
  10.    ScaleWidth      =   4800
  11.    Begin VB.Menu mnuHelp 
  12.       Caption         =   "&Help"
  13.       Begin VB.Menu mnuHelpContents 
  14.          Caption         =   "&Contents"
  15.       End
  16.       Begin VB.Menu mnuHelpSearch 
  17.          Caption         =   "&Search For Help On..."
  18.       End
  19.       Begin VB.Menu mnuHelpBar1 
  20.          Caption         =   "-"
  21.       End
  22.       Begin VB.Menu mnuHelpAbout 
  23.          Caption         =   "&About MyApp..."
  24.       End
  25.    End
  26. Attribute VB_Name = "frmHelpMenu"
  27. Attribute VB_GlobalNameSpace = False
  28. Attribute VB_Creatable = False
  29. Attribute VB_PredeclaredId = True
  30. Attribute VB_Exposed = False
  31. Private Declare Function OSWinHelp% Lib "user32" Alias "WinHelpA" (ByVal hwnd&, ByVal HelpFile$, ByVal wCommand%, dwData As Any)
  32. Private Sub mnuHelpAbout_Click()
  33.   MsgBox "About Box Code goes here!"
  34. '  frmAbout.Show vbModal
  35. End Sub
  36. Private Sub mnuHelpContents_Click()
  37.   On Error Resume Next
  38.   Dim nRet As Integer
  39.   nRet = OSWinHelp(Me.hwnd, App.HelpFile, 3, 0)
  40.   If Err Then
  41.     MsgBox Err.Description
  42.   End If
  43. End Sub
  44. Private Sub mnuHelpSearch_Click()
  45.   On Error Resume Next
  46.   Dim nRet As Integer
  47.   nRet = OSWinHelp(Me.hwnd, App.HelpFile, 261, 0)
  48.   If Err Then
  49.     MsgBox Err.Description
  50.   End If
  51. End Sub
  52.