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

OnProgress

Description

Generated as the Flash Player movie is downloading.

Example


LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
...
case WM_NOTIFY: { NMHDR* pNMHDR = (NMHDR*)lParam; if (hwndFlashPlayerControl == pNMHDR->hwndFrom) { switch (pNMHDR->code) { case FPCN_ONPROGRESS: { SFPCOnProgressInfoStruct* pInfo = (SFPCOnProgressInfoStruct*)lParam; TCHAR lpszBuffer[1024]; _sntprintf(lpszBuffer, sizeof(lpszBuffer) - 1, _T("percentDone: %d"), pInfo->percentDone); MessageBox(hWnd, lpszBuffer, _T("OnProgress()"), MB_OK | MB_ICONINFORMATION); break; } } } } }

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.