FlashPlayerControl Help >> Access to 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

FPCM_GET_SALIGN
FPCM_PUT_SALIGN

Structures

struct SFPCGetSAlign
{    
     // [in, out]
     LPTSTR lpszBuffer;
     DWORD dwBufferSize;
     // [out]
     HRESULT hr;
};

struct SFPCPutSAlign
{    
     // [in]
     LPCTSTR lpszBuffer;
     // [out]
     HRESULT hr;
};

Example

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

5: supported
6: supported
7: supported


Copyright © 2004 Softanics. All rights reserved.
Delphi is a trademark of Borland Software Corporation.
Macromedia and Shockwave Flash are trademarks of Macromedia, Inc.