PsyVision
Jul 30th, 2002, 08:32 AM
hey,
i found a DLL that creates a global hook to the keyboard. it requires a InstallHook function to be loaded up which ive done.
The function passes a HWND value. The demo in vb of this uses a picture box.
When im wondering in C++ is how i can create and work out the HWND of a picture box.
Then most importantly receive the KeyDown event on the picture box.
Can anything 'easier' be used than a picture box ??
P.s this is been doine in a Win32 DLL (No MFC Crap) and i could you a dialogue box if it makes it easier.
i found a DLL that creates a global hook to the keyboard. it requires a InstallHook function to be loaded up which ive done.
The function passes a HWND value. The demo in vb of this uses a picture box.
When im wondering in C++ is how i can create and work out the HWND of a picture box.
Then most importantly receive the KeyDown event on the picture box.
Can anything 'easier' be used than a picture box ??
P.s this is been doine in a Win32 DLL (No MFC Crap) and i could you a dialogue box if it makes it easier.