Help us improve Softanics
We use analytics cookies to understand which pages and downloads are useful. No ads. Privacy Policy

OnProgress

Description

This event is triggered when the Flash ActiveX event OnProgress is raised.

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;  
                }  
            }  
        }  
    }  
}