hi i have to implement the keyboard shortcuts in my application
if i do ctrl+c then my connect function should be call
could you please suggest me
What I have tried:
i have added in my .rc file
IDR_MAINFRAME MENU
BEGIN
POPUP "File"
MENUITEM "&Connect", ID_FILE_CONNECT
END
IDR_MAINFRAME ACCELERATORS
BEGIN
"C", ID_FILE_CONNECT, VIRTKEY, CONTROL
END
im .cpp
ON_COMMAND(ID_FILE_CONNECT, OnFileConnect)
lstBasicCommands.AddTail(ID_FILE_CONNECT);
PostMessage(WM_COMMAND, ID_FILE_CONNECT);
could you please suggest me if anything is missed here