DeviceFont
Messages
FPCM_GET_DEVICEFONT
FPCM_PUT_DEVICEFONT
Structures
struct SFPCGetDeviceFont
{
// [out]
VARIANT_BOOL DeviceFont;
// [out]
HRESULT hr;
};
struct SFPCPutDeviceFont
{
// [in]
VARIANT_BOOL DeviceFont;
// [out]
HRESULT hr;
};
Description
Gets or sets DeviceFont.
Example
void GetDeviceFont(HWND hwndFlashPlayerControl)
{
SFPCGetDeviceFont info;
::SendMessage(hwndFlashPlayerControl, FPCM_GET_DEVICEFONT, 0, (LPARAM)&info);
if FAILED(info.hr)
// Error
{
// ...
}
else
// OK
{
TCHAR lpszBuffer[1024];
wsprintf(lpszBuffer, _T("%d"), info.DeviceFont);
::MessageBox(NULL, lpszBuffer, _T("Result"), MB_OK);
}
}
void PutDeviceFont(HWND hwndFlashPlayerControl, VARIANT_BOOL DeviceFont)
{
SFPCPutDeviceFont info;
info.DeviceFont = DeviceFont;
::SendMessage(hwndFlashPlayerControl, FPCM_PUT_DEVICEFONT, 0, (LPARAM)&info);
if FAILED(info.hr)
// Error
{
// ...
}
else
// OK
{
// ...
}
}