Pelles C forum

C language => Windows questions => Topic started by: tpekar on July 15, 2011, 08:30:24 PM

Title: How can I user a modifier key to process say... Alt-a for example
Post by: tpekar on July 15, 2011, 08:30:24 PM
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.).
Title: Re: How can I user a modifier key to process say... Alt-a for example
Post by: CommonTater on July 15, 2011, 09:55:49 PM
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.