How to Stop Internet explorer shortcut keys in CDHTMLDialog Class?
I am new to CDHT开发者_如何学PythonMLDialog in mfc. I know how to disable Refresh keys.
Is there generic solution to disable internet shortcut keys(accelerators)?
Ex: ctrl+n , ctrl+o.
Thanks
Override CDHtmlDialog::TranslateAccelerator
Override CDHtmlDialog::TranslateAccelerator
if( ( GetAsyncKeyState(VK_CONTROL) & 0x8000 )
&& (('N' == lpMsg->wParam)
|| ('O' == lpMsg->wParam)
|| ('L' == lpMsg->wParam)
|| ('P' == lpMsg->wParam)))
return S_OK;
精彩评论