SetOutlineOpenFileA
书签大纲
描述
末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅公开 Unicode 形式。其行为与 SetOutlineOpenFile 相同,字符串参数使用当前 SetAnsiMode 代码页解释
设置大纲项(书签),以便在单击时打开文件
语法
Delphi
Function DLSetOutlineOpenFileA(InstanceID, OutlineID: Integer; FileName: PAnsiChar): Integer;
DLL
int DLSetOutlineOpenFileA(int InstanceID, int OutlineID, const char * FileName);
参数
| OutlineID | NewOutline 函数返回的大纲 ID。或者,使用 GetOutlineID 函数获取有效的大纲 ID |
|---|---|
| FileName | 单击大纲时要打开的文件。该值应采用特定格式。反斜杠应转换为正斜杠,如有驱动器,则应仅将驱动器号置于正斜杠之间,不带冒号。例如,文件 "c:\my documents\hello.pdf" 应指定为 "/c/my documents/hello.pdf"。相对路径名称有效,包括含有 ".." 运算符以移至上级目录的路径 |
返回值
| 0 | OutlineID 无效 |
|---|---|
| 1 | 已成功设置书签目标 |