Playing

Messages

FPCM_GET_PLAYING
FPCM_PUT_PLAYING

Structures

struct SFPCGetPlaying
{    
    // [out]
    VARIANT_BOOL Playing;
 
    // [out]
    HRESULT hr;
};
 
struct SFPCPutPlaying
{
    // [in]
    VARIANT_BOOL Playing;
 
    // [out]
    HRESULT hr;
};

Description

Gets or sets Playing.

Example

void GetPlaying(HWND hwndFlashPlayerControl)
{
    SFPCGetPlaying info;
 
    ::SendMessage(hwndFlashPlayerControl, FPCM_GET_PLAYING, 0, (LPARAM)&info);
 
    if FAILED(info.hr)
        // Error
    {
        // ...
    }
    else
        // OK
    {
        TCHAR lpszBuffer[1024];
        wsprintf(lpszBuffer, _T("%d"), info.Playing);
 
        ::MessageBox(NULL, lpszBuffer, _T("Result"), MB_OK);
    }
}
 
void PutPlaying(HWND hwndFlashPlayerControl, VARIANT_BOOL Playing)
{
    SFPCPutPlaying info;
 
    info.Playing = Playing;
 
    ::SendMessage(hwndFlashPlayerControl, FPCM_PUT_PLAYING, 0, (LPARAM)&info);
 
    if FAILED(info.hr)
        // Error
    {
        // ...
    }
    else
        // OK
    {
        // ...
    }
}