S
Shahin Musayev
Hello everybody!
I'm developing a COM Add-in and it should run some routines in
response on keystrokes (like CTRL+C etc).
So I decided to use subclassing to resolve my problem. Using Spy++ I
identified that WM_KEYDOWN, WM_SYSKEYDOWN messages are sent to EXCEL7
window (workbook window). So I tried to subclass that one. But the
problem I faced is that my new window procedure receives WM_KEYDOWN,
WM_SYSKEYDOWN messages only in case key combination is not used by
Excel and not assigned to macro by OnKey method.
1) Is there any way to receive any keystrokes from COM Add-in?
2) Is there any way to override key combinations used by Excel and
defined by OnKey method?
Any help would be greatly appreciated, thanks!!!!
Shahin
I'm developing a COM Add-in and it should run some routines in
response on keystrokes (like CTRL+C etc).
So I decided to use subclassing to resolve my problem. Using Spy++ I
identified that WM_KEYDOWN, WM_SYSKEYDOWN messages are sent to EXCEL7
window (workbook window). So I tried to subclass that one. But the
problem I faced is that my new window procedure receives WM_KEYDOWN,
WM_SYSKEYDOWN messages only in case key combination is not used by
Excel and not assigned to macro by OnKey method.
1) Is there any way to receive any keystrokes from COM Add-in?
2) Is there any way to override key combinations used by Excel and
defined by OnKey method?
Any help would be greatly appreciated, thanks!!!!
Shahin