Hi,
As far as I'm concerned you could try to overload BOOL PreTranslateMessage (MSG* pMsg)
Here is my code:
BOOL CClassView::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if (pMsg->message == WM_KEYDOWN)
{
int nKey = pMsg->wParam;
if ((nKey == 'C' || nKey == 'X'
|| nKey == 'V') &&
(::GetKeyState(VK_CONTROL) & 0x8000))
{
::TranslateMessage(pMsg);
::DispatchMessage(pMsg);
return(TRUE);
}
}
return CDockablePane::PreTranslateMessage(pMsg);
}
Best Regards,
Jeanine
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.