Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot disable right-click menu
#3
@kevin

You gave me a lot of help, Thank you very much.  Heart

Can you give me a few ways to improve my programming skills quickly?

For example: entry-level programming books, programming newbie forums…… etc.  Smile

It's a little strange , I opened the quiz from my local web page and still can't use the custom right click menu   Huh


Macro No
Code:
Copy      Help
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 724 376 "Dialog"
;4 ActiveX 0x54030000 0x0 0 0 724 376 "SHDocVw.WebBrowser {8856F961-340A-11D0-A96B-00C04FD705A2}"
;END DIALOG
;DIALOG EDITOR: "" 0x2040700 "*" "" "" ""

str controls = "4"
str ax4SHD
if(!ShowDialog(dd &sub.DlgProc &controls)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,SetTimer hDlg 1 100 0
,SHDocVw.WebBrowser we4
,we4._getcontrol(id(4 hDlg))
,;we4.Navigate("http://static.flipbuilder.com/demo/sysco-seafood/index.html#p=1")
,;we4.Navigate("http://fs.focusky.com.cn/jhgh/vapp/files/extfiles/ext_201851908834294.html")
,we4.Navigate(_s.expandpath("$desktop$\test\index.html")) 
,case WM_TIMER
,sel wParam
,,case 1
,,int wies=child("" "Internet Explorer_Server" id(4 hDlg)); if(wies=0) ret
,,SetWindowSubclass(wies &sub.WndProc_Subclass 2 0)
,,int mfpax=child("" "MacromediaFlashPlayerActiveX" id(4 hDlg));
,,if(mfpax!=0)
,,,SetWindowSubclass(mfpax &sub.WndProc_Subclass 2 0)
,,else
,,,ret
,,KillTimer hDlg wParam
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1


#sub WndProc_Subclass
function# hwnd message wParam lParam uIdSubclass dwRefData

;OutWinMsg message wParam lParam ;;uncomment to see received messages

sel message
,case WM_RBUTTONDOWN
,str s=
,;1 Text
,;-
,;2 Text
,;>Submenu
,;,Text
,;,Text
,;,<
,MenuPopup x.AddItems(s)
,int i=x.Show
,sel i
,,case 1
,,mes "1"
,ret

int R=DefSubclassProc(hwnd message wParam lParam)

sel message
,case WM_NCDESTROY
,RemoveWindowSubclass(hwnd &sub.WndProc_Subclass uIdSubclass)
,
,;case ...

ret R


Attached Files
.zip   test.zip (Size: 865.86 KB / Downloads: 323)


Messages In This Thread
Cannot disable right-click menu - by win - 05-19-2018, 12:25 AM
RE: Cannot disable right-click menu - by Kevin - 05-19-2018, 12:50 AM
RE: Cannot disable right-click menu - by win - 05-19-2018, 02:43 AM
RE: Cannot disable right-click menu - by Kevin - 05-19-2018, 03:34 AM
RE: Cannot disable right-click menu - by win - 05-19-2018, 03:38 AM
RE: Cannot disable right-click menu - by Kevin - 05-19-2018, 04:14 AM
RE: Cannot disable right-click menu - by win - 05-19-2018, 04:53 AM
RE: Cannot disable right-click menu - by Kevin - 05-19-2018, 04:57 AM
RE: Cannot disable right-click menu - by win - 05-19-2018, 05:29 AM
RE: Cannot disable right-click menu - by Kevin - 05-19-2018, 05:32 AM
RE: Cannot disable right-click menu - by win - 05-19-2018, 05:50 AM
RE: Cannot disable right-click menu - by Kevin - 05-19-2018, 06:25 AM
RE: Cannot disable right-click menu - by win - 05-19-2018, 07:02 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)