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

ScaleMode

Description

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

Messages

[ C++ ]
FPCM_GET_SCALEMODE
FPCM_PUT_SCALEMODE

Structures

[ C++ ]
struct SFPCGetScaleMode
{    
    // [out]
    int ScaleMode;

    // [out]
    HRESULT hr;
};


struct SFPCPutScaleMode
{
    // [in]
    int ScaleMode;

    // [out]
    HRESULT hr;
};

Example

[ C++ ]
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

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