Zitat von
Boombuler:
Dadurch das du "CallNextHookEx" wegläst unterbrichst du die Hookchain!
Richtig, aber 'unhöflich'...
Code:
Return Value
If nCode is less than zero, the hook procedure must return the value returned by CallNextHookEx.
If nCode is greater than or equal to zero, and the hook procedure did not process the message, [color=red]it is highly recommended that you call CallNextHookEx and return the value it returns; otherwise, other applications that have installed WH_MOUSE hooks will not receive hook notifications and may behave incorrectly as a result.[/color] [color=green]If the hook procedure processed the message, it may return a nonzero value to prevent the system from passing the message to the target window procedure.[/color]