How to progam the function keys
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
Re: How to progam the function keys
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
Re: How to progam the function keys
Use PreTranslateMessage function and then filter messages by VK_F1...
Thanks,
Ilgar Mashayev