Hi cris,
>That's a bit of a problem since we already had to perform miracles in order to let VFP capture the keypresses (as the OCX doesn't pass them to VFP)
>So, we already 'hooked' the OCX's keypresses to our form. Now we have to do exact the opposite?
>So hook the keypresses received from the OCX back to the OCX?
We've been through this before, when you tried to implement my keybhook.dll solution. I guess you did capture the keypresses in a simular way I did as described in Thread #
630954 Message #
678969. This thread also gives you the sourcecode and strategy I used.
In short, it does not pass the up, down, pageup and pagedown keypresses to VFP but let the OCX handle this. The mousewheel message is only processed in the OCX if the mousecursor is over the report window, else VFP will process it.
The netto result: My CR 8.5 preview window correctly handles the up,down, pageup, pagedown and mousewheel messages internally and passes all other messages to VFP.
I strongly advise to look at this implementation again and find out to get it working in your case (Crystal 9.0 ?)
Walter,