Postby ramrocket » Sat Mar 25, 2006 8:03 pm
I have tried both WindowProc() and global handler FPCListener to receive notifications. I have thesame result. Works on F7 and dont work on F8. Here is a snippit of my code.
How can I make this to work??? Anything I am missing.
Thanks for you help.
OnCreate()
{
//set the listener
FPCSetEventListener(m_hwndFlashPlayerControl, CFlashPlayerCtrl::FPCListener, (LPARAM) this);
}
void WINAPI CFlashPlayerCtrl::FPCListener(HWND hwndFlashPlayerControl, LPARAM lParam, NMHDR* pNMHDR)
{
CFlashPlayerCtrl *pThis = (CFlashPlayerCtrl *)lParam;
if(pThis == NULL) return;
switch (pNMHDR->code)
{
case FPCN_FSCOMMAND:
{
::MessageBox(NULL, "FPCN_FSCOMMAND called", AX_CAPTION, MB_OK);
SFPCFSCommandInfoStruct* pInfo = (SFPCFSCommandInfoStruct*)pNMHDR;
CString temp;
temp.Format("Command = %s , Args = %s", pInfo->command, pInfo->args);
::MessageBox(NULL, temp,AX_CAPTION,MB_OK);
break;
}
default: break;
}
}