F-IN-BOX DLL Edition Help >> Extensions >> Messages

FPCM_PUTMOVIEFROMMEMORY

Description

Loads the movie from memory.

Message

[ C++ ]
FPCM_PUTMOVIEFROMMEMORY

Structure

[ C++ ]
typedef struct SFPCPutMovieFromMemory
{
    // [in]
    LPVOID lpData;
    // [in]
    DWORD dwSize;

} SFPCPutMovieFromMemory;

Example

[ C++ ]
#include "f_in_box.h"    

HWND hwndFlashPlayerControl = FPC_CreateWindow(...);

// Loading flash movie from resources    
HMODULE hModule = GetModuleHandle(NULL);
HRSRC hResInfo = FindResource(hModule, _T("EmbeddedMovie"), _T("FLASH"));
HGLOBAL hResData = LoadResource(hModule, hResInfo);
LPVOID lpMovieData = LockResource(hResData);
DWORD dwMovieSize = SizeofResource(hModule, hResInfo);

SFCPutMovieFromMemory sFCPutMovieFromMemory;

sFCPutMovieFromMemory.lpData = lpMovieData;
sFCPutMovieFromMemory.dwSize = dwMovieSize;

::SendMessage(hwndFlashPlayerControl, FCM_PUTMOVIEFROMMEMORY, 0, (LPARAM)&sFCPutMovieFromMemory);


Copyright © Softanics. All rights reserved.
F-IN-BOX is a trademark of Softanics.
Macromedia and Shockwave Flash are trademarks of Adobe