FlashPlayerControl Help >> Access to Native Flash ActiveX Interface >> Properties
Description
The currently displayed frame of the movie. Setting this will advance or rewind the movie.
Messages
FPCM_GET_FRAMENUM
FPCM_PUT_FRAMENUM |
Structures
struct SFPCGetFrameNum
{
long FrameNum;
HRESULT hr;
};
struct SFPCPutFrameNum
{
long FrameNum;
HRESULT hr;
};
|
Example
void GetFrameNum(HWND hwndFlashPlayerControl)
{
SFPCGetFrameNum info;
::SendMessage(hwndFlashPlayerControl, FPCM_GET_FRAMENUM, 0, (LPARAM)&info);
if FAILED(info.hr)
{
}
else
{
TCHAR lpszBuffer[1024];
wsprintf(lpszBuffer, _T("%d"), info.FrameNum);
::MessageBox(NULL, lpszBuffer, _T("Result"), MB_OK);
}
}
void PutFrameNum(HWND hwndFlashPlayerControl, long FrameNum)
{
SFPCPutFrameNum info;
info.FrameNum = FrameNum;
::SendMessage(hwndFlashPlayerControl, FPCM_PUT_FRAMENUM, 0, (LPARAM)&info);
if FAILED(info.hr)
{
}
else
{
}
}
|
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.
|