Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 30-Apr-15 3:50am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900