F-IN-BOX DLL Edition Help >> Native Flash ActiveX Interface >> Properties

EmbedMovie

Description

Messages

[ C++ ]
FPCM_GET_EMBEDMOVIE
FPCM_PUT_EMBEDMOVIE

Structures

[ C++ ]
struct SFPCGetEmbedMovie
{    
    // [out]
    VARIANT_BOOL EmbedMovie;

    // [out]
    HRESULT hr;
};


struct SFPCPutEmbedMovie
{
    // [in]
    VARIANT_BOOL EmbedMovie;

    // [out]
    HRESULT hr;
};

Example

[ C++ ]
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
    {
        // ...
    }
}

Flash versions

3: supported
4: supported
5: supported
6: supported
7: supported
8: supported
9: supported



Copyright © Softanics. All rights reserved.
F-IN-BOX is a trademark of Softanics.
Macromedia and Shockwave Flash are trademarks of Adobe