If you want to disable over all context menu when right button is clicked?
If yes in my openinon you can use
PreTranslateMessage.
his Function filter window messages before they are dispatched to the Windows functions.
BOOL PreTranslateMessage( MSG* pMsg_i )
{
try
{
switch( pMsg_i->message )
{
case WM_KEYDOWN:
{
UINT nKeyCode = pMsg_i->wParam;
SHORT sCtrlKeyState = ::GetKeyState( VK_CONTROL );
if(( _T( 'C' ) == nKeyCode || _T( 'V' ) == nKeyCode ) &&
( 0 > sCtrlKeyState ))
{
return TRUE;
}
break;
}
case WM_CONTEXTMENU:
case WM_RBUTTONDOWN:
{
return TRUE;
}
default:
{
break;
}
}
}
catch( ... )
{
throw;
}
}
so when user try to double click this function just retuen true.