Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
control the SWF file to full screen
#8
this is about as close as i can get ya to Fullscreen similar to ie fullscreen in a dialog 
again this is not complete fullscreen as the file does not have full screen programmed in it seems the dialog and the control are as large as i can make them
 f11 toggles full screen on and off

Function Dialog_Quiz
Code:
Copy      Help
typelib ShockwaveFlashObjects {D27CDB6B-AE6D-11CF-96B8-444553540000} 1.0

str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 448 246 "Quiz" "0 10"
;3 ActiveX 0x54030000 0x0 0 0 450 246 "ShockwaveFlashObjects.ShockwaveFlash {D27CDB6E-AE6D-11CF-96B8-444553540000}" ".2 Press F11 to toggle fullscreen mode"
;END DIALOG
;DIALOG EDITOR: "" 0x2040700 "*" "" "" ""

if(!ShowDialog(dd &sub.DlgProc 0)) ret


#sub DlgProc
function# hDlg message wParam lParam
__RegisterHotKey- t_hk1
sel message
,case WM_INITDIALOG
,ShockwaveFlashObjects.ShockwaveFlash-- sh3
,sh3._getcontrol(id(3 hDlg))
,sh3.LoadMovie(0 "http://fs.focusky.com.cn/jhgh/mcnh/files/extfiles/ext_2018414091740557.swf")    
,DT_SetAutoSizeControls(hDlg "1m 2m 3s 4m")    
,t_hk1.Register(hDlg 1 0 VK_F11) ;;F11
,case WM_HOTKEY
,sel wParam
,,case 1 
,,if max(hDlg)
,,,SetWinStyle hDlg WS_CAPTION 1
,,,SetWinStyle hDlg WS_BORDER 1
,,,res hDlg
,,else
,,,SetWinStyle hDlg WS_CAPTION 2
,,,SetWinStyle hDlg WS_BORDER 2
,,,max hDlg    
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1


Messages In This Thread
control the SWF file to full screen - by win - 04-25-2018, 07:19 AM
RE: control the SWF file to full screen - by win - 04-25-2018, 11:19 AM
RE: control the SWF file to full screen - by win - 04-25-2018, 01:32 PM
RE: control the SWF file to full screen - by r0n - 04-25-2018, 03:32 PM
RE: control the SWF file to full screen - by win - 04-25-2018, 04:24 PM
RE: control the SWF file to full screen - by win - 04-26-2018, 12:05 AM
RE: control the SWF file to full screen - by Kevin - 04-27-2018, 12:48 AM
RE: control the SWF file to full screen - by win - 04-29-2018, 03:00 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)