how do i sense ctrl+C in a dialog based application?
-
how do i sense ctrl+C in a dialog based application?
-
how do i sense ctrl+C in a dialog based application?
Use the RegisterHotKey Function. The function parameters let you input which window will receive the hotkey, and the specific key combination you need. Then in your window, place an ON_MESSAGE message map function that associates the WM_HOTKEY message with the function you want to call when the hotkey is pressed. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/registerhotkey.asp[^]
-
how do i sense ctrl+C in a dialog based application?
theerkanamai wrote: how do i sense ctrl+C in a dialog based application? If your just looking to handle the Ctrl-C key while your dialog is in focus, you can easily add an accelerator key. In the resource view locate the Accelerator folder. Double click to open it, right click and scroll down to “New Accelerator” -------------------------------
-
Use the RegisterHotKey Function. The function parameters let you input which window will receive the hotkey, and the specific key combination you need. Then in your window, place an ON_MESSAGE message map function that associates the WM_HOTKEY message with the function you want to call when the hotkey is pressed. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/registerhotkey.asp[^]
Sorry Heman! RegisterHotKey function never register Hotkey for Ctrl+c as it is previously register by window for system wide Clipboard usage!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta