Click to See Complete Forum and Search --> : How to progam the function keys


Keith
May 6th, 1999, 03:21 PM
I would like my application which is in the system tray to respond to a particular function key, lets say F4.
How do I do that? In a Win32 WndProc do I have a case for WM_KEYDOWN and checks for the function key value? Or do I have to create a hook function?
I cannot find any information about Function Keys in Visual C++ anywhere.
Could someone enlighten me and provide pointer to documentation sources.
Thanks

Harvey Hawes
May 6th, 1999, 03:59 PM
Hi,


I don't know about apps in the taskbar, but in my apps, I can just map one of the function keys (VK_F1 - VK_F12) to a handler with an accelerator table. Might work for you too...

HTH,




Harvey Hawes

Software Engineer
BioScience Analysis Software Ltd.

Masters Candidate
Cardiovascular/Respiratory Sciences
Faculty of Medicine
University of Calgary
Calgary, Alberta, Canada

ilgar
May 10th, 1999, 09:06 AM
Use PreTranslateMessage function and then filter messages by VK_F1...

Thanks,
Ilgar Mashayev