Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to disable pop-up menu on IE browser control or flash control
#2
Finding some code in Google but I don't know how to use it

for c c++ 

Code:
Copy      Help
BOOL CWebBrowser2::PreTranslateMessage(MSG* pMsg)
{
   // TODO: Add your specialized code here and/or call the base class
   if(WM_RBUTTONDOWN == pMsg->message)
   {
       AfxMessageBox(_T("Right Menu!"));
       return TRUE;
   }
   return CWnd::PreTranslateMessage(pMsg);
}


for vb:

Dim WithEvents M_Dom As MSHTML.HTMLDocument 
Private Function M_Dom_oncontextmenu() As Boolean 
M_Dom_oncontextmenu = False 
End Function 
Private Sub Webbrowser1_DownloadComplete() 
Set M_Dom = Webbrowser1.Document  
me.PopupMenu mymenu 
End Sub


Messages In This Thread
RE: How to disable pop-up menu on IE browser control or flash control - by win - 04-23-2018, 04:36 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)