Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

menu option to Load Index and Contents of help file

Tips -N- Tricks

menu option to Load Index and Contents of help file

by  danceman  Posted    (Edited  )
in menu builder, create a main topic of Help. submenu of Index, another of Contents.

in the result columun of Index enter in Procedure
#define HELP_FINDER 11
local hwnd, lpHelpFile, wCommand, dwData

Declare long WinHelp in user32 Long hwnd, ;
String lpHelpFile, Long wCommand, Long dwData

Declare integer GetActiveWindow in user32

lpHelpFile = "&cProgDir.\vpcmatrix.hlp"

wCommand = HELP_FINDER

dwData = 0

hwnd = GetActiveWindow() && get the window handle
WinHelp(hwnd,lpHelpFile ,wCommand,dwData)


in the result columun of Contents enter in Procedure
#define HELP_INDEX 3
local hwnd, lpHelpFile, wCommand, dwData

Declare long WinHelp in user32 Long hwnd, ;
String lpHelpFile, Long wCommand, Long dwData

Declare integer GetActiveWindow in user32

lpHelpFile = "&cProgDir.\vpcmatrix.hlp"
wCommand = HELP_INDEX
dwData = 0

hwnd = GetActiveWindow() && get the window
WinHelp(hwnd,lpHelpFile ,wCommand,dwData)
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top