Quote Originally Posted by chronozphere
It doesn't compile ProcessKeyDown is an undeclared identifier.

in which unit is this it defined
I think you have to declare it yourself

BTW, I have a related questions. I hide the mouse cursor when I get a WM_SETFOCUS, but I want to show it again with WM_KILLFOCUS... but ShowCursor(True) doesn't seem to work when receiving that message, probably because the focus is already lost and ShowCursor() doesn't allow to tell which window handle I'm refering to. What can I do?