FlashPlayerControl Help >> Access to Native Flash ActiveX Interface >> Methods
Description
Returns a string indicating the value specified by property_ for the timeline indicated by target.
Message
Structure
struct SFPCTGetProperty
{
struct
{
LPCTSTR lpszBuffer;
} target;
int property;
struct
{
LPCTSTR lpszBuffer;
DWORD dwBufferSize;
} Result;
HRESULT hr;
};
|
Example
void InvokeTGetProperty(HWND hwndFlashPlayerControl, LPCTSTR target, int property)
{
SFPCTGetProperty info;
info.target.lpszBuffer = target;
info.property = property;
info.Result.lpszBuffer = NULL;
::SendMessage(hwndFlashPlayerControl, FPCM_TGETPROPERTY, 0, (LPARAM)&info);
if FAILED(info.hr)
{
return;
}
info.Result.lpszBuffer = (TCHAR*)LocalAlloc(LPTR, info.Result.dwBufferSize * sizeof(TCHAR));
::SendMessage(hwndFlashPlayerControl, FPCM_TGETPROPERTY, 0, (LPARAM)&info);
if FAILED(info.hr)
{
}
else
{
::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.
|