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

Menu

Description

Messages

FPCM_GET_MENU
FPCM_PUT_MENU

Structures

struct SFPCGetMenu
{    
     // [out]
     VARIANT_BOOL Menu;

     // [out]
     HRESULT hr;
};

struct SFPCPutMenu
{    
     // [out]
     VARIANT_BOOL Menu;

     // [out]
     HRESULT hr;
};

Example

void GetMenu(HWND hwndFlashPlayerControl)
{
     SFPCGetMenu info;

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

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

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

void PutMenu(HWND hwndFlashPlayerControl, VARIANT_BOOL Menu)
{
     SFPCPutMenu info;

     info.Menu = Menu;

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