F-IN-BOX DLL Edition Help >> Native Flash ActiveX Interface >> Events

OnProgress

Description

Generated as the Flash Player movie is downloading.

Example

[ C++ ]
  1. LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)  
  2. {  
  3. ...  
  4.     case WM_NOTIFY:  
  5.     {  
  6.         NMHDR* pNMHDR = (NMHDR*)lParam;  
  7.   
  8.         if (hwndFlashPlayerControl == pNMHDR->hwndFrom)  
  9.         {  
  10.             switch (pNMHDR->code)  
  11.             {  
  12.                 case FPCN_ONPROGRESS:  
  13.                 {  
  14.                     SFPCOnProgressInfoStruct* pInfo = (SFPCOnProgressInfoStruct*)lParam;  
  15.   
  16.                     TCHAR lpszBuffer[1024];  
  17.                     _sntprintf(lpszBuffer, sizeof(lpszBuffer) - 1, _T("percentDone: %d"), pInfo->percentDone);  
  18.   
  19.                     MessageBox(hWnd, lpszBuffer, _T("OnProgress()"), MB_OK | MB_ICONINFORMATION);  
  20.   
  21.                     break;  
  22.                 }  
  23.             }  
  24.         }  
  25.     }  
  26. }  
  27. <p></p><div class="text"><b>Flash versions</b></div><p></p><p>  
  28. </p><div class="text">All versions are supported</div><p></p><hr color="#dedede"><div class="text">  
  29. <center>  
  30.   
  31. <br>  
  32. <font color="gray">  
  33.     Copyright © <a href="http://www.softanics.com">Softanics</a>. All rights reserved.  
  34.     <br>  
  35.     <small>F-IN-BOX is a trademark of </small><a href="http://www.softanics.com" target="blank"><small>Softanics</small></a>.  
  36.     <br>  
  37.     <small>Macromedia and Shockwave Flash are trademarks of </small><a href="http://www.adobe.com" target="blank"><small>Adobe</small></a>  
  38. </font>  
  39. </center>  
  40. </div><hr color="#dedede"><div class="text">  
  41. Quick links:  
  42. <a href="http://www.f-in-box.com/dll/" target="_blank"><b>F-IN-BOX DLL Edition Home Page</b></a>  
  43. | <a href="http://www.f-in-box.com/dll/order.html" target="_blank">Buy license</a>  
  44. | <a href="http://www.f-in-box.com/forum/" target="_blank">Welcome to our forum!</a>  
  45. | <a href="http://www.f-in-box.com/support.html" target="_blank">Ask your question</a>  
  46. | <a href="http://www.f-in-box.com/dll/help/" target="_blank">Help on the Web</a>  
  47. </div><table width="95%" align="center" cellpadding="16" cellspacing="1" bgcolor="#cdcdcd" border="0">  
  48.   
  49.   
  50.   
  51.   
  52.   
  53.   
  54.   
  55.   
  56.   
  57.   
  58.   
  59.   
  60.   
  61.   
  62.   
  63.   
  64. </table>  
  65.   
  66. <script language="javascript" src="../../../SyntaxHighlighter/Scripts/shInit.js"></script>