uint IDocHostUIHandler.TranslateAccelerator(ref tagMSG lpMsg, ref Guid pguidCmdGroup, uint nCmdID) { // let CTRL+A, CTRL+C to go through const int VK_CONTROL = 0x11; if (GetAsyncKeyState(VK_CONTROL) < 0) { switch (lpMsg.wParam &= 0xFF) { case 'A': case 'C': return(1); } } return(0); }
uint IDocHostUIHandler.TranslateAccelerator(ref tagMSG lpMsg, ref Guid pguidCmdGroup, uint nCmdID) { // let CTRL+A, CTRL+C to go through const int VK_CONTROL = 0x11; if (GetAsyncKeyState(VK_CONTROL) < 0) { switch (lpMsg.wParam &= 0xFF) { case 'A': case 'C': return 1; } } return 0; }