SetOutlineOpenFileA
Marcadores
Descrição
O A final indica o ponto de entrada ANSI (char) da DLL; a interface ActiveX/COM expõe somente a forma Unicode O comportamento é idêntico a SetOutlineOpenFile, e os argumentos de string são interpretados usando a página de código atual de SetAnsiMode
Define o item de marcador (bookmark) para abrir um arquivo quando clicado
Sintaxe
Delphi
Function DLSetOutlineOpenFileA(InstanceID, OutlineID: Integer; FileName: PAnsiChar): Integer;
DLL
int DLSetOutlineOpenFileA(int InstanceID, int OutlineID, const char * FileName);
Parâmetros
| OutlineID | O ID do marcador conforme retornado pela função NewOutline. Alternativamente, use a função GetOutlineID para obter um ID de marcador válido |
|---|---|
| FileName | The file to open when the outline is clicked. This should be in a specific format. Back slashes should be converted to forward slashes and the drive, if any, should be specified as just the drive letter between forward slashes without a colon. For example, the file "c:\my documents\hello.pdf" should be specified as "/c/my documents/hello.pdf". Relative path names are valid, including paths that include the ".." operator to move up a directory. |
Valores retornados
| 0 | The OutlineID was invalid |
|---|---|
| 1 | O destino do outline foi definido com sucesso |