I have an VS2008/C++/MFC application that is quite simple. It is a
dialog based application that is border-less, sizes itself to the size
of the screen and plays a SWF file using the Flash ActiveX control.
Everything works as it should.
I would like to know if the user presses the left mouse button while
the SWF file is playing. There is no interaction - the SWF is showing
images. OnLButtonDown in the dialog doesn't receive the message so it
is being eaten up by the ActiveX control.
Is there a way for the ActiveX control to tell me that a mouse button
has been pressed?
Thanks,
Glen
Yes, write a WH_MOUSE or WH_MOUSE_LL hook. I recommend the LL one because
that is called in the context of your thread meaning you don't need to put
your hook function in a DLL. Only hook your own process.
-- David
David,
Thank you for your response and pointing me in the right direction.
I'm not terribly familiar with hook procedures - I'm currently reading
up. Can you point me to a sample?
Thanks again,
Glen
I have some code available but it isn't exactly a sample. Have you gotten
to the part where you're calling SetWindowsHookEx() yet? Is your callback
function getting called?
-- David