Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

I have a vanilla application mouse hook that looks for mouse double click.
I set a flag MouseDoubleClick = true upon detection and use it liberally to my advantage in my code.

I also have a CBT hook where I watch for HCBT_CREATEWND. - This is also working as desired.

Yesterday I found that I would need to know if a MouseDoubleClick was true upon detection of
HCBT_CREATEWND but the CBT hook is beating the mouse hook so the double click is not seen.

I was concidering putting the mouse hook in a global hook to see if I could circumvent the problem but would rather not use a global hook if possible.

I also considered creating a dedicated worker thread to run the mouse hook but I don't think that would be cricket, or is it?

I don't think I am completely understanding this issue.

Thanks.

:Ron
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900