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

TSetProperty

Description

For the timeline indicated by target, sets the value of the property specified by property_ to the value. See TGetProperty.

Message

FPCM_TSETPROPERTY

Structure

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

     } target;

     // [in]
     int property;
     // [in]
     struct
     {
          LPCTSTR lpszBuffer;

     } value;


     // [out]
     HRESULT hr;
};

Example

void InvokeTSetProperty(HWND hwndFlashPlayerControl, LPCTSTR target, int property, LPCTSTR value)
{
     SFPCTSetProperty info;

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

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