FlashPlayerControl Help >> Access to Native Flash ActiveX Interface >> Properties

ScaleMode

Description

Integer value from range 0..10. Value is the same as Scale. 0 - ShowAll, 1 - NoBorder, 2 - ExtractFit, 3 - NoScale, 4 - Low, 5 - AutoLow, 6 - AutoHight, 7 - Hight, 8 - Best, 9 - AutoMedium, 10 - Medium.

Messages

FPCM_GET_SCALEMODE
FPCM_PUT_SCALEMODE

Structures

struct SFPCGetScaleMode
{    
     // [out]
     int ScaleMode;

     // [out]
     HRESULT hr;
};

struct SFPCPutScaleMode
{    
     // [out]
     int ScaleMode;

     // [out]
     HRESULT hr;
};

Example

void GetScaleMode(HWND hwndFlashPlayerControl)
{
     SFPCGetScaleMode info;

     ::SendMessage(hwndFlashPlayerControl, FPCM_GET_SCALEMODE, 0, (LPARAM)&info);
    
     if FAILED(info.hr)
          // Error
     {
          // ...
     }
     else
          // OK
     {
          TCHAR lpszBuffer[1024];

          wsprintf(lpszBuffer, _T("%d"), info.ScaleMode);

          ::MessageBox(NULL, lpszBuffer, _T("Result"), MB_OK);
     }
}

void PutScaleMode(HWND hwndFlashPlayerControl, int ScaleMode)
{
     SFPCPutScaleMode info;

     info.ScaleMode = ScaleMode;

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