AlignMode
Messages
FPCM_GET_ALIGNMODE
FPCM_PUT_ALIGNMODE
Structures
struct SFPCGetAlignMode
{
// [out]
int AlignMode;
// [out]
HRESULT hr;
};
struct SFPCPutAlignMode
{
// [in]
int AlignMode;
// [out]
HRESULT hr;
};
Description
Gets or sets AlignMode.
Example
void GetAlignMode(HWND hwndFlashPlayerControl)
{
SFPCGetAlignMode info;
::SendMessage(hwndFlashPlayerControl, FPCM_GET_ALIGNMODE, 0, (LPARAM)&info);
if FAILED(info.hr)
// Error
{
// ...
}
else
// OK
{
TCHAR lpszBuffer[1024];
wsprintf(lpszBuffer, _T("%d"), info.AlignMode);
::MessageBox(NULL, lpszBuffer, _T("Result"), MB_OK);
}
}
void PutAlignMode(HWND hwndFlashPlayerControl, int AlignMode)
{
SFPCPutAlignMode info;
info.AlignMode = AlignMode;
::SendMessage(hwndFlashPlayerControl, FPCM_PUT_ALIGNMODE, 0, (LPARAM)&info);
if FAILED(info.hr)
// Error
{
// ...
}
else
// OK
{
// ...
}
}