-
Tricky One
As some of you might know the function to add an item to the end of a menu is AppendMenu like:
AppendMenu(lhSysMenu, MF_CHECKED,IDM_AlwaysOnTop, "Always On Top")
to add an item into the system menu that can be checked.
But how the heck can I add a keyboard shortcut to that like
"Shift + Y" or so. :confused:
I tried long but couldn't figure it out. Maybe someone can help me?
That would be too good to be true as I couldn't find it neither on the net nor in the msdn library under AppendMenu. (But I've seen it in programs like winzip)
Thanks!!!
:(
-
Look at the Platform SDK under the Keyboard Accelerators section. There are functions such as LoadAccelerator, CreateAcceleratorTable etc. that you can read up on.