|
|
|
|
|
Dicas
|
|
Visual Basic (Miscelâneas)
|
|
|
Título da Dica: Chamando um arquivo de ajuda chm por tópico
|
|
|
|
Postada em 26/10/2003 por ^HEAVY-METAL^
'First place a existing chm File In 'the project path. 'You must know what Name your htm pages have To work 'correct.
'In a module place the follwing code Option Explicit Private Declare Function HtmlHelpTopic Lib "hhctrl.ocx" Alias _ "HtmlHelpA" (ByVal hWnd As Long, ByVal lpHelpFile As String, _ ByVal wCommand As Long, ByVal dwData As String) As Long Sub ShowHtmlHelp(ByVal tHelpFile As String, ByVal tHelpPage As String) Const HH_DISPLAY_TOPIC =3D &H0 On Error Resume Next ' Open the help page In a modeless window HtmlHelpTopic 0, tHelpFile, HH_DISPLAY_TOPIC, tHelpPage End Sub
'For use: 'Put a command button To your 'form And Name it cmdHelp Private Sub cmdHelp_Click() 'This Is only a example ShowHtmlHelp App.path & "\MyHelp.chm", "Introduction.htm" End Sub
T+,
Manuel
|
|
|
|
|