BGColor

Messages

FPCM_GET_BGCOLOR
FPCM_PUT_BGCOLOR

Structures

struct SFPCGetBGColor
{    
    // [in, out]
    LPTSTR lpszBuffer;
    DWORD dwBufferSize;
 
    // [out]
    HRESULT hr;
};
 
struct SFPCPutBGColor
{
    // [in]
    LPCTSTR lpszBuffer;
 
    // [out]
    HRESULT hr;
};

Description

Gets or sets BGColor.

Example

void GetBGColor(HWND hwndFlashPlayerControl)
{
    SFPCGetBGColor info;
 
    info.lpszBuffer = NULL;
 
    ::SendMessage(hwndFlashPlayerControl, FPCM_GET_BGCOLOR, 0, (LPARAM)&info);
 
    if FAILED(info.hr)
        // Error
    {
        return;
    }
 
    info.lpszBuffer = (TCHAR*)LocalAlloc(LPTR, info.dwBufferSize * sizeof(TCHAR));
 
    ::SendMessage(hwndFlashPlayerControl, FPCM_GET_BGCOLOR, 0, (LPARAM)&info);
 
    if FAILED(info.hr)
        // Error
    {
        // ...
    }
    else
        // OK
    {
        ::MessageBox(NULL, info.lpszBuffer, _T("Result"), MB_OK);
    }
 
    LocalFree((HLOCAL)info.lpszBuffer);
}
 
void PutBGColor(HWND hwndFlashPlayerControl, LPCTSTR BGColor)
{
    SFPCPutBGColor info;
 
    info.lpszBuffer = BGColor;
 
    ::SendMessage(hwndFlashPlayerControl, FPCM_PUT_BGCOLOR, 0, (LPARAM)&info);
 
    if FAILED(info.hr)
        // Error
    {
        // ...
    }
    else
        // OK
    {
        // ...
    }
}