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

TSetPropertyNum

Description

Message

FPCM_TSETPROPERTYNUM

Structure

struct SFPCTSetPropertyNum
{    
     // [in]
     struct
     {
          LPCTSTR lpszBuffer;

     } target;

     // [in]
     int property;
     // [in]
     double value;

     // [out]
     HRESULT hr;
};

Example

void InvokeTSetPropertyNum(HWND hwndFlashPlayerControl, LPCTSTR target, int property, double value)
{
     SFPCTSetPropertyNum info;

     info.target.lpszBuffer = target;
     info.property = property;
     info.value = value;

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