FlashPlayerControl Help >> Access to Native Flash ActiveX Interface >> Methods

TCurrentLabel

Description

Returns the label of the current frame of the timeline specified by target. If there is no current frame label, an empty string is returned. The argument type is string.

Message

FPCM_TCURRENTLABEL

Structure

struct SFPCTCurrentLabel
{    
     // [in]
     struct
     {
          LPCTSTR lpszBuffer;

     } target;


     // [in, out]
     struct
     {
          LPCTSTR lpszBuffer;
          DWORD dwBufferSize;

     } Result;

     // [out]
     HRESULT hr;
};

Example

void InvokeTCurrentLabel(HWND hwndFlashPlayerControl, LPCTSTR target)
{
     SFPCTCurrentLabel info;

     info.target.lpszBuffer = target;

     info.Result.lpszBuffer = NULL;

     ::SendMessage(hwndFlashPlayerControl, FPCM_TCURRENTLABEL, 0, (LPARAM)&info);

     if FAILED(info.hr)
          // Error
     {
          return;
     }

     info.Result.lpszBuffer = (TCHAR*)LocalAlloc(LPTR, info.Result.dwBufferSize * sizeof(TCHAR));

     ::SendMessage(hwndFlashPlayerControl, FPCM_TCURRENTLABEL, 0, (LPARAM)&info);
    
     if FAILED(info.hr)
          // Error
     {
          // ...
     }
     else
          // OK
     {
          ::MessageBox(NULL, info.Result.lpszBuffer, _T("Result"), MB_OK);
     }

     LocalFree((HLOCAL)info.Result.lpszBuffer);
}

Flash versions

5: supported
6: supported
7: supported


Copyright © 2004 Softanics. All rights reserved.
Delphi is a trademark of Borland Software Corporation.
Macromedia and Shockwave Flash are trademarks of Macromedia, Inc.