Megosztás a következőn keresztül:


TCard Method

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 <i>wPARAM</i>, LPARAM <i>lPARAM</i>) 

Parameters

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:52a2aaae-085d-4187-97ea-8c30db990436"
>
   <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> 

Remarks

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

About Methods