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

SAlign

Description

String value is either 'L', 'T', 'R', 'B' or any combination (LR, LT, TR, LTR, LB, RB, LRB, TB, LTB, TRB, LTRB). 'L', 'R', 'T' and 'B' align the movie along the left, right, top or bottom edge, respectively, of the browser window and crop the remaining three sides as needed. 'TL' and 'TR' align the movie to the top left and top right corner, respectively, of the browser window and crop the bottom and remaining right or left side as needed. 'BL' and 'BR' align the movie to the bottom left and bottom right corner, respectively, of the browser window and crop the top and remaining right or left side as needed. See also AlignMode.

Messages

[ C++ ]
FPCM_GET_SALIGN
FPCM_PUT_SALIGN

Structures

[ C++ ]
struct SFPCGetSAlign
{    
    // [in, out]
    LPTSTR lpszBuffer;
    DWORD dwBufferSize;

    // [out]
    HRESULT hr;
};


struct SFPCPutSAlign
{
    // [in]
    LPCTSTR lpszBuffer;

    // [out]
    HRESULT hr;
};

Example

[ C++ ]
void GetSAlign(HWND hwndFlashPlayerControl)
{
    SFPCGetSAlign info;

    info.lpszBuffer = NULL;

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

    if FAILED(info.hr)
        // Error
    {
        return;
    }

    info.lpszBuffer = (TCHAR*)LocalAlloc(LPTR, info.dwBufferSize * sizeof(TCHAR));

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

    if FAILED(info.hr)
        // Error
    {
        // ...
    }
    else
        // OK
    {
        ::MessageBox(NULL, info.lpszBuffer, _T("Result"), MB_OK);
    }

    LocalFree((HLOCAL)info.lpszBuffer);
}


void PutSAlign(HWND hwndFlashPlayerControl, LPCTSTR SAlign)
{
    SFPCPutSAlign info;

    info.lpszBuffer = SAlign;

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