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

FPCM_GET_ALIGNMODE
FPCM_PUT_ALIGNMODE

Structures

struct SFPCGetAlignMode
{    
     // [out]
     int AlignMode;

     // [out]
     HRESULT hr;
};

struct SFPCPutAlignMode
{    
     // [out]
     int AlignMode;

     // [out]
     HRESULT hr;
};

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
     {
          // ...
     }
}

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.