SetOutlineWebLinkA

Outlines

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SetOutlineWebLink and string arguments are interpreted using the current SetAnsiMode code page

Specifies an internet link that should be opened when the user clicks on the outline item (bookmark).

Syntax

Delphi

Function DLSetOutlineWebLinkA(InstanceID, OutlineID: Integer; Link: PAnsiChar): Integer;

DLL

int DLSetOutlineWebLinkA(int InstanceID, int OutlineID, const char * Link);

Parameters

OutlineIDThe ID of the outline as returned by the NewOutline function. Alternatively, use the GetOutlineID function to get a valid outline ID.
LinkThe URL to link to. Some examples: "http://www.example.com/" "mailto:[email protected]"

Return values

0The OutlineID was invalid
1The web link action was added to the outline item successfully