开发者

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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜