How To use HotKey Control in VC++?
Printable View
How To use HotKey Control in VC++?
I have read the documentation,I have set control on my dialog
WORD dw = 'D';
m_hot.SetHotKey(dw,HOTKEYF_CONTROL);
when I run program it displays the key "ctrl+D " in hotkey control.
But what does it does,it doesnot activates window
How to use the key?
What do you mean by "it doesnot activates window"?
Quote:
Originally Posted by shivditya
The control just lets you catch a key combination the application is to register, one way or another. It activates nothing. Seems you need to get back to reading the documentation.Quote:
A hot key control is a window that enables the user to enter a combination of keystrokes to be used as a hot key. A hot key is a key combination that the user can press to perform an action quickly. For example, a user can create a hot key that activates a given window and brings it to the top of the z-order. The hot key control displays the user's choices and ensures that the user selects a valid key combination.
Thank you for reply It seems I have to register Hotkey ,then only it will work
Thankyou very much I got it I registered the hot key and mapped WM_HOTKEY in function and it does work