Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable right click on SHDocVw.WebBrowser?
#1
Is it possible to disable (catch) right click on a SHDocVw.WebBrowser control?
I want to disable the right click menu which shows: Back, Forward....Properties

Function shdoc_rclick_disable
Code:
Copy      Help
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog" "4"
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;3 ActiveX 0x54030000 0x0 10 9 200 101 "SHDocVw.WebBrowser"
;END DIALOG
;DIALOG EDITOR: "" 0x2040A00 "*" "" "" ""

str controls = "3"
str ax3SHD
if(!ShowDialog(dd &sub.DlgProc &controls)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1


Messages In This Thread
Disable right click on SHDocVw.WebBrowser? - by r0n - 02-18-2021, 08:40 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)