How can I user a modifier key to process say... Alt-a for example

Started by tpekar, July 15, 2011, 08:30:24 PM

Previous topic - Next topic

tpekar

MSDN talks about using a modifier key to process key combinations.  I was wondering if anyone can show me how to do this in Pelles C. (Ctrl-a, Alt-a, etc.).

CommonTater

ALT is used internally by windows for it's menu system and is generally processed by the IsDialogMessage() function in your message dispatcher loop.

Ctrl+  is available to the user to use through accelerator tables.

When creating an accelerator table just add the modifier to the accelerator...

The forger's tutorial talks about these and other windows resources.  This is a needed skill.  Not everything that happens in windows happens in C code.