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

Quality

Description

The current rendering quality (0 = Low, 1 = High, 2 = AutoLow, 3 = AutoHigh). This is the same as the Quality2 property.

Messages

FPCM_GET_QUALITY
FPCM_PUT_QUALITY

Structures

struct SFPCGetQuality
{    
     // [out]
     int Quality;

     // [out]
     HRESULT hr;
};

struct SFPCPutQuality
{    
     // [out]
     int Quality;

     // [out]
     HRESULT hr;
};

Example

void GetQuality(HWND hwndFlashPlayerControl)
{
     SFPCGetQuality info;

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

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

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

void PutQuality(HWND hwndFlashPlayerControl, int Quality)
{
     SFPCPutQuality info;

     info.Quality = Quality;

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