how to send mouse events to flashplayercontrol program.

DLL Edition of the F-IN-BOX
ohlik
Posts: 2
Joined: Wed Dec 21, 2005 6:19 am

how to send mouse events to flashplayercontrol program.

Postby ohlik » Wed Dec 21, 2005 6:31 am

to send a mouse event to program, i used SendMessage() fucntion.
But, it does not work.

::SendMessage(m_hwndFlashPlayerControl, WM_LBUTTONUP, 0, lParam);
--> does not work.
m_hwndFlashPlayerControl is returned value of CreateWindow(WC_FLASH, NULL, WS_CHILD | WS_VISIBLE, rc.left ........)

::SendMessage(m_hWnd, WM_LBUTTONUP, 0, lParam);
--> does not work. m_hWnd is a parent of m_hwndFlashPlayerControl.

what is wrong in my source?

ps. sorry. my english is poor. English is not my mother tongue.

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Wed Dec 21, 2005 8:36 am

Thank you for your question.

Try to send this messages to GetWindow(GetWindow(m_hwndFlashPlayerControl, GW_CHILD), GW_CHILD).
Also you can use Spy to monitor messages, it helps you.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

ohlik
Posts: 2
Joined: Wed Dec 21, 2005 6:19 am

Postby ohlik » Thu Dec 22, 2005 5:21 pm

Thank you for your good answer.

i had seen a similar code to "GetWindow(GetWindow(m_hwndFlashPlayerControl, GW_CHILD), GW_CHILD)" in flashplayercontrol source code. But it did not work too.
So i wrote a question in this forum.
Anyway. my problem was solved by this way you said.
My program works well.

Thanks again. Merry Christmas & Happy new year.~


Return to “DLL Edition”

Who is online

Users browsing this forum: No registered users and 10 guests