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

AlignMode

Description

Integer value from range 0..15. This is the same as SAlign. 0 - no align, 1 - L, 2 - R, 3 - LR, 4 - T, 5 - LT, 6 - TR, 7 - LTR, 8 - B, 9 - LB, 10 - RB, 11 - LRB, 12 - TB, 13 - LTB, 14 - TRB, 15 - LTRB.

Messages

[ C++ ]
FPCM_GET_ALIGNMODE
FPCM_PUT_ALIGNMODE

Structures

[ C++ ]
struct SFPCGetAlignMode
{    
    // [out]
    int AlignMode;

    // [out]
    HRESULT hr;
};


struct SFPCPutAlignMode
{
    // [in]
    int AlignMode;

    // [out]
    HRESULT hr;
};

Example

[ C++ ]
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
    {
        // ...
    }
}

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