The WM TCARD Message
idAction = wParam; // user action
dwActionData = lParam; // action data
The WM_TCARD message is sent to a program that has initiated a training card with the WinHelp program.
ParameterDescription
idActionIndicates the action that the user has taken. Value of wParam.This parameter can be one of the following values:
ValueMeaning
IDABORTThe user clicked an authorable Abort button.
IDCANCELThe user clicked an authorable Cancel button.
IDCLOSEThe user closed the training card.
IDHELPThe user clicked an authorable Help button.
IDIGNOREThe user clicked an authorable Ignore button.
IDOKThe user clicked an authorable OK button.
IDNOThe user clicked an authorable No button.
IDRETRYThe user clicked an authorable Retry button.
IDYESThe user clicked an authorable Yes button.
HELP_TCARD_DATAThe user clicked an authorable button. The lParam parameter contains a long integer specified by the Help author.
HELP_TCARD_NEXTThe user clicked an authorable Next button.
HELP_TCARD_OTHER_CALLERAnother program has requested training cards.
dwActionDataValue of lParam. If idAction specifies HELP_TCARD_DATA, this parameter is a long integer specified by the Help author. Otherwise, this parameter is zero.
Return Value
The return value is ignored; use zero.
Comments
The message informs the program when the user clicks an authorable button or hotspot that runs the TCard macro. A program initiates a training card by specifying the HELP_TCARD command in a call to the WinHelp function.
WinHelp can run only one training card at a time. If another program requests a training card, the program currently using training cards receives a WM_TCARD message with wParam == HELP_TCARD_OTHER_CALLER. The program receiving this message should either terminate the training card (HELP_QUIT | HELP_TCARD), or the next time it gets the focus, it should call WinHelp with a HELP_FORCEFILE | HELP_TCARD command.
See Also
Calling WinHelp()
Calling WinHelp Version 4.0 #define list Examples FuCommand Parameters HELP Context ID Property The HELPINFO Structure The HELPWININFO Structure The MULTIKEYHELP Structure Visual Basic