Quick links:
F-IN-BOX DLL Edition Home Page
| Buy license
| Welcome to our forum!
| Ask your question
| Help on the Web
F-IN-BOX DLL Edition Help >> Extensions >> Messages FPCM_LOADMOVIEFROMMEMORY
Description
Loads the movie from memory to the layer.
Message
[ C++ ]
FPCM_LOADMOVIEFROMMEMORY Structure
[ C++ ]
typedef struct SFPCLoadMovieFromMemory { // [in] int layer; // [in] LPVOID lpData; // [in] DWORD dwSize; } SFPCLoadMovieFromMemory; 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); SFCLoadMovieFromMemory sFCLoadMovieFromMemory; sFCLoadMovieFromMemory.layer = 0; sFCLoadMovieFromMemory.lpData = lpMovieData; sFCLoadMovieFromMemory.dwSize = dwMovieSize; ::SendMessage(hwndFlashPlayerControl, FPCM_LOADMOVIEFROMMEMORY, 0, (LPARAM)&sFCLoadMovieFromMemory); Copyright © Softanics. All rights reserved. F-IN-BOX is a trademark of Softanics. Macromedia and Shockwave Flash are trademarks of Adobe
Quick links:
F-IN-BOX DLL Edition Home Page
| Buy license
| Welcome to our forum!
| Ask your question
| Help on the Web
|