EmbedMovie
Messages
FPCM_GET_EMBEDMOVIE
FPCM_PUT_EMBEDMOVIE
Structures
struct SFPCGetEmbedMovie
{
// [out]
VARIANT_BOOL EmbedMovie;
// [out]
HRESULT hr;
};
struct SFPCPutEmbedMovie
{
// [in]
VARIANT_BOOL EmbedMovie;
// [out]
HRESULT hr;
};
Description
This is an undocumented Flash ActiveX property.
With F-IN-BOX, you can embed Flash movies and load them directly from memory or a stream, bypassing the need for temporary files.
See also: Load movies from memory.
Example
void GetEmbedMovie(HWND hwndFlashPlayerControl)
{
SFPCGetEmbedMovie info;
::SendMessage(hwndFlashPlayerControl, FPCM_GET_EMBEDMOVIE, 0, (LPARAM)&info);
if FAILED(info.hr)
// Error
{
// ...
}
else
// OK
{
TCHAR lpszBuffer[1024];
wsprintf(lpszBuffer, _T("%d"), info.EmbedMovie);
::MessageBox(NULL, lpszBuffer, _T("Result"), MB_OK);
}
}
void PutEmbedMovie(HWND hwndFlashPlayerControl, VARIANT_BOOL EmbedMovie)
{
SFPCPutEmbedMovie info;
info.EmbedMovie = EmbedMovie;
::SendMessage(hwndFlashPlayerControl, FPCM_PUT_EMBEDMOVIE, 0, (LPARAM)&info);
if FAILED(info.hr)
// Error
{
// ...
}
else
// OK
{
// ...
}
}