Capturing F10
-
I am writing an application for a customer and they have selected that F10 and it's variations (Ctl, Alt, Shift) bring up different windows. Now I know that F10 is a System key used for Menu's and such, but I have tried WM_SYSCOMMAND and WM_SYSKEYDOWN to no avail. Here is my code for OnSysCommand: void CMyDialog::OnSysCommand(UINT nID, LPARAM lParam) { if (nID == SC_KEYMENU) { UINT nKey = VK_F10; OnFunctionKey(&nKey); } else { CDialog::OnSysCommand(nID, lParam); } } This works fine...but it works whether the user presses F10 or just Alt, which I don't want. So the basic question is "Has anybody used F10 for something other than a menu initializer?" Thanks Chris Mancini
-
I am writing an application for a customer and they have selected that F10 and it's variations (Ctl, Alt, Shift) bring up different windows. Now I know that F10 is a System key used for Menu's and such, but I have tried WM_SYSCOMMAND and WM_SYSKEYDOWN to no avail. Here is my code for OnSysCommand: void CMyDialog::OnSysCommand(UINT nID, LPARAM lParam) { if (nID == SC_KEYMENU) { UINT nKey = VK_F10; OnFunctionKey(&nKey); } else { CDialog::OnSysCommand(nID, lParam); } } This works fine...but it works whether the user presses F10 or just Alt, which I don't want. So the basic question is "Has anybody used F10 for something other than a menu initializer?" Thanks Chris Mancini