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

Zoom

Description

Zoom the view by a relative scale factor. Zoom(50) will double the size of the objects in the view. Zoom(200) will reduce the size of objects in the view by one half.

Message

FPCM_ZOOM

Structure

struct SFPCZoom
{    
     // [in]
     int factor;

     // [out]
     HRESULT hr;
};

Example

void InvokeZoom(HWND hwndFlashPlayerControl, int factor)
{
     SFPCZoom info;

     info.factor = factor;

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