Subj : Re: CTRL key To : borland.public.cpp.borlandcpp From : Jeff Baker Date : Sat Jul 17 2004 11:31 am Are you trying to create a shortcut in your menu bar? If so then the code would look something like this... case WM_CREATE: { HMENU hMenu, hSubMenu; hMenu = CreateMenu(); hSubMenu = CreatePopupMenu(); AppendMenu(hSubMenu,MF_STRING,ID_FILE_EXIT,"E&xit"); AppendMenu(hMenu,MF_STRING|MF_POPUP,(UINT)hSubMenu,"&File"); SetMenu(hwnd,hMenu); } This would create a menu that uses CTRL+x to as a shortcut to exit the program and CTRL+F to open a file. Hope this helps you out. - Jeff "mike" wrote in message news:40f601de@newsgroups.borland.com... > Hi, > > how do you make a hotkey using the CTRL key? for example, CTRL-S to save a > file? the WM_SYSKEYDOWN only tracks the ALT key. i was wondering what > message if any there is to use the CTRL key? if not, how do you do this? > > Aloha > mike > > .