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 !!!
Printable View
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 !!!
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.