TCard method

HTML Help ActiveX

TCard method

Purpose

Use the TCard method to send a WM_TCARD message from a help window to a program. This method provides the same functionality as the TCard command with the exception that the method accepts only numeric arguments.

Using the TCard method reduces the number of instances of the control in an HTML file. If you plan on using multiple TCard commands in a single HTML file, then you should insert a single <OBJECT> tag, and then call the TCard method.

The instance of the HTML Help ActiveX control that you reference using the TCard method must specify the TCard command.

This command can be used only with a compiled help (.chm) file.

Applies to

TCard

Syntax

TCard(WPARAM wPARAM, LPARAM lPARAM)

PARAM name Values
wPARAM Specifies the value to pass to the WM_TCARD message. wPARAM usually identifies a user action.

This value must be numeric.

lPARAM Specifies the value to pass to the WM_TCARD message. Contains additional data, depending on the value of wPARAM.

This value must be numeric.

Example

The code for the control:


<OBJECT

id=test
type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"
>
<PARAM name="Command" value="TCard">
<param name="Button" value="Call TCard command">
<param name="Item1" value="123, MyText">
</OBJECT>

The JavaScript code to invoke the control:

<a href="JavaScript:test.TCard (5555, 10056)">TCard Example</a>

Comments

  • The TCard method accepts only numeric arguments. To pass a string argument in lPARAM, use the TCard command.

link to overview topic About methods