I want to to get word under mouse cursor but when user right click in any window, default windows context menu appear, how can i prevent showing default windows context menu in winEvent in Qt?
bool EventReceiverWindow::winEvent (MSG *message,long *result )
{
if( message->message == WM_RBUTTONUP ) {
// *result = ? (What's value should i passed to *result to prevent showing defualt context menu)
return true;
}
}
Just pass TRUE to the *result and return true;