F-IN-BOX DLL Edition Help >> Native Flash ActiveX Interface >> Events
Description
Generated as the Flash Player movie is downloading.
Example
[ C++ ]
- 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;
- }
- }
- }
- }
- }
- <p></p><div class="text"><b>Flash versions</b></div><p></p><p>
- </p><div class="text">All versions are supported</div><p></p><hr color="#dedede"><div class="text">
- <center>
-
- <br>
- <font color="gray">
- Copyright © <a href="http://www.softanics.com">Softanics</a>. All rights reserved.
- <br>
- <small>F-IN-BOX is a trademark of </small><a href="http://www.softanics.com" target="blank"><small>Softanics</small></a>.
- <br>
- <small>Macromedia and Shockwave Flash are trademarks of </small><a href="http://www.adobe.com" target="blank"><small>Adobe</small></a>
- </font>
- </center>
- </div><hr color="#dedede"><div class="text">
- Quick links:
- <a href="http://www.f-in-box.com/dll/" target="_blank"><b>F-IN-BOX DLL Edition Home Page</b></a>
- | <a href="http://www.f-in-box.com/dll/order.html" target="_blank">Buy license</a>
- | <a href="http://www.f-in-box.com/forum/" target="_blank">Welcome to our forum!</a>
- | <a href="http://www.f-in-box.com/support.html" target="_blank">Ask your question</a>
- | <a href="http://www.f-in-box.com/dll/help/" target="_blank">Help on the Web</a>
- </div><table width="95%" align="center" cellpadding="16" cellspacing="1" bgcolor="#cdcdcd" border="0">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </table>
-
- <script language="javascript" src="../../../SyntaxHighlighter/Scripts/shInit.js"></script>
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
All versions are supported
Copyright © Softanics. All rights reserved.
F-IN-BOX is a trademark of Softanics.
Macromedia and Shockwave Flash are trademarks of Adobe
|