Click to return to the HTML Help home page    
SyncURL     TextPopup     HTML Help ActiveX Control...    
Web Workshop  |  DHTML, HTML & CSS  |  HTML Help

TCard Method


Microsoft Corporation

Updated June 10, 1999

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


link to overview topic About methods
 


Back to topBack to top

Did you find this material useful? Gripes? Compliments? Suggestions for other articles? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.