better way
Function Function29
Function Function29
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 "*" "" "" ""
WebBrowserControlDisableIE7Emulation
str controls = "4"
str ax4SHD
if(!ShowDialog(dd &sub.DlgProc &controls)) ret
#sub DlgProc
function# hDlg message wParam lParam
int- mfpax2 mfpax3 mfpax
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)
,,mfpax=child("" "MacromediaFlashPlayerActiveX" id(4 hDlg));
,,if(mfpax!=0 and mfpax2!=mfpax)
,,,SetWindowSubclass(mfpax &sub.WndProc_Subclass 2 0)
,,,mfpax2=mfpax
,,else
,,,ret
,,KillTimer hDlg wParam
,,SetTimer hDlg 2 100 0
,,case 2
,,mfpax3=child("" "MacromediaFlashPlayerActiveX" id(4 hDlg));
,,if(mfpax3!=0 and mfpax2!=mfpax3)
,,,SetWindowSubclass(mfpax3 &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