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

BackgroundColor

Description

Override the background color of a movie. An integer of the form BackgroundColor := red shl 16 + green shl 8 + blue; Use -1 for the default movie color.

Messages

[ C++ ]
FPCM_GET_BACKGROUNDCOLOR
FPCM_PUT_BACKGROUNDCOLOR

Structures

[ C++ ]
struct SFPCGetBackgroundColor
{    
    // [out]
    long BackgroundColor;

    // [out]
    HRESULT hr;
};


struct SFPCPutBackgroundColor
{
    // [in]
    long BackgroundColor;

    // [out]
    HRESULT hr;
};

Example

[ C++ ]
void GetBackgroundColor(HWND hwndFlashPlayerControl)
{
    SFPCGetBackgroundColor info;

    ::SendMessage(hwndFlashPlayerControl, FPCM_GET_BACKGROUNDCOLOR, 0, (LPARAM)&info);

    if FAILED(info.hr)
        // Error
    {
        // ...
    }
    else
        // OK
    {
        TCHAR lpszBuffer[1024];
        wsprintf(lpszBuffer, _T("%d"), info.BackgroundColor);

        ::MessageBox(NULL, lpszBuffer, _T("Result"), MB_OK);
    }
}


void PutBackgroundColor(HWND hwndFlashPlayerControl, long BackgroundColor)
{
    SFPCPutBackgroundColor info;

    info.BackgroundColor = BackgroundColor;

    ::SendMessage(hwndFlashPlayerControl, FPCM_PUT_BACKGROUNDCOLOR, 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