I am having the same as this.
http://win32apiforum.com/topic.php?f=15&t=17
I used RegisterHotKey API to provide hot keys for certain events. Key combination Ctrl+C is registered successfully and my application works fine. If I don’t close my application and run another application (such as Notepad or Microsoft Word) where Ctrl+C key combination is use to copy selected text then this call is trapped by my application as it is registered hotkey and windows did not get to see it at all. That’s why 开发者_如何学JAVAcopy selected text functionality is not working in other applications which is major flaw.
I looked into many forums and MSDN and tried to find work around however did not get anything. Could anyone of you please suggest anyway out for the issue?
Thank you
Use another key combination. Or catch Ctrl+C using SetWindowsHookEx with WH_KEYBOARD_LL hook. Hook function allows to continue keyboard event handling and doesn't prevent another programs to handle it.
精彩评论