Click to See Complete Forum and Search --> : Ctrl_V Hot key....


thleem
May 4th, 1999, 01:08 AM
I have one derived from CEditView class
I want to block Ctrl_V in My class, and also I want to use other's Hot Keys.
How can I implement that?

Thank for your reading !!!

eric33
May 4th, 1999, 01:24 AM
I think the simplest way is to override the PreTranslate of your CEditView class.

An example for Ctrl+V :


BOOL CMyClass::PreTranslateMessage(MSG* pMsg) {
if ( (pMsg->message == WM_KEYDOWN &&
(GetKeyState(VK_CONTROL) & ~1) &&
pMsg->wParam == 'V' )
{
// Your code
}
}




I hope this could help.