Good god......
Even with a keyboard accelerator you will not get the ON_COMMAND message for ID_CONTEXT_HELP.
Instead you need to intercept it in the message pump of your mainframe:
BOOL CMainFrame::PreTranslateMessage(MSG* pMsg)
{
if(pMsg->message == 0x4d)
{
// SHIFT+F1 Help
if( GetKeyState(VK_SHIFT) < 0 )
{
CFrameWndEx::OnContextHelp();
return(TRUE);
}
}
return CFrameWndEx::PreTranslateMessage(pMsg);
}
Which will launch the ? cursor behaviour.
Thanks to
this code project article that had the magic number for the message to intercept! :)
Thanks