BackgroundColor
Messages
FPCM_GET_BACKGROUNDCOLOR
FPCM_PUT_BACKGROUNDCOLOR
Structures
struct SFPCGetBackgroundColor
{
// [out]
long BackgroundColor;
// [out]
HRESULT hr;
};
struct SFPCPutBackgroundColor
{
// [in]
long BackgroundColor;
// [out]
HRESULT hr;
};
Description
Gets or sets BackgroundColor.
Example
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
{
// ...
}
}