I want to delivery mouse events to flash.
I am using the following create function because I have to get bitmap for frame in direct3d.
Code: Select all
g_hwndFlashPlayerControl =
CreateWindow((LPCTSTR)FPC_GetClassAtom(g_hFPC),
NULL,
WS_CHILD | FPCS_TRANSPARENT, // WS_VISIBLE
0,
0,
DEF_WIDTH,
DEF_HEIGHT,
hWnd,
NULL,
NULL,
NULL);
And I use the following code to delivery mouse events.
Code: Select all
case WM_LBUTTONDOWN:
case WM_LBUTTONUP:
case WM_LBUTTONDBLCLK:
case WM_RBUTTONDOWN:
case WM_RBUTTONUP:
case WM_RBUTTONDBLCLK:
case WM_MOUSEMOVE:
{
//3d->2d coordination translation is needed.
::SendMessage(g_hwndFlashPlayerControl, msg, wParam, lParam);
}
break;
I checked "WM_MOUSEMOVE" event is working in flash !!
But though "WM_LBUTTONDOWN" event is sent to flash window,
It is not working well. I try about 10 mouse click, then only 1 click is working.
I think my question is the same to http://www.f-in-box.com/forum/viewtopic ... highlight= (Help with Mouse/Keyboard to Flash Window when in Direct3d) in forum.
Now, do you have the way?
Thank you so much.