I need a modifier key in my app., the best one I can find is ALT. Unfortunately ALT triggers the appearance of accelerator keys in the ribbon bar, this is going to be confusing for the user.
Has anyone got a quick idea how I can stop them appearing?
A couple of functions I've tried overloading -
OnBeforeProcessKey
- triggers when the user presses a key after Alt has been used to display the acclerators -> No good.
onSysKeyDown
not sure what's happened here - class wizard adds a function that isn't like the one in MSDN (
void OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
and then it wont build as the base class expects the function overloaded as per MSDN
BOOL OnSysKeyDown(CFrameWnd* pFrameWnd,WPARAM wParam,LPARAM lParam)
Ideas welcome. I never seem to receive WM_SYSKEYDOWN messages to process.
Thanks
Edit - This is (partly) the wrong question... how do I find out of the ribbon is showing its accelerator keys? In which case I could send it an Alt key event in order to hide them.