How do you "simply" call (or activate) a Windows Help (HLP) file from within a PB/DLL program? I'm using the following code to capture WHEN the Context Help is Requested:
CASE %WM_HELP
LOCAL lphi AS HELPINFO PTR, a$
lphi = CBLPARAM
IF @lphi.iCtrlId THEN CONTROL GET TEXT CBHNDL, @lphi.iCtrlId TO a$
IF @lphi.iCtrlId>1 AND @lphi.iCtrlId<60000 THEN
MSGBOX "HELP!!! - you asked for help on control ID#" & STR$(@lphi.iCtrlId) & $CRLF & _
"The control text = """ & a$ & """",, "Context Help"
END IF
CONTROL SET FOCUS CBHNDL, @lphi.iCtrlId
-----------------------------------------------------------
This portion of the code works just fine, and reports the propper control ID. BUT, I have no clue as to just how to call up or activate the Help file and pass just where in the file I want to be displayed? (I don't care which I can pass: a reference/bookmark number or 'Keywords' to be automatically searched to the Help file).
BTW: How do you get the BBS to keep the formatting when you paste in source code? (My posts alway look like garbage after I post any code).
Many Thanks,
Ray Corry
[This message has been edited by Ray Corry (edited February 19, 2000).]
CASE %WM_HELP
LOCAL lphi AS HELPINFO PTR, a$
lphi = CBLPARAM
IF @lphi.iCtrlId THEN CONTROL GET TEXT CBHNDL, @lphi.iCtrlId TO a$
IF @lphi.iCtrlId>1 AND @lphi.iCtrlId<60000 THEN
MSGBOX "HELP!!! - you asked for help on control ID#" & STR$(@lphi.iCtrlId) & $CRLF & _
"The control text = """ & a$ & """",, "Context Help"
END IF
CONTROL SET FOCUS CBHNDL, @lphi.iCtrlId
-----------------------------------------------------------
This portion of the code works just fine, and reports the propper control ID. BUT, I have no clue as to just how to call up or activate the Help file and pass just where in the file I want to be displayed? (I don't care which I can pass: a reference/bookmark number or 'Keywords' to be automatically searched to the Help file).
BTW: How do you get the BBS to keep the formatting when you paste in source code? (My posts alway look like garbage after I post any code).
Many Thanks,
Ray Corry
[This message has been edited by Ray Corry (edited February 19, 2000).]
Comment