就是鼠标拖动窗口大小后让Flash控件随窗口大小改变。#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 450, 350, -1, -1, _
BitOR($WS_MINIMIZEBOX, $WS_MAXIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU, $WS_THICKFRAME, $WS_SIZEBOX))
GUISetBkColor(0x000000)
$oswf = ObjCreate("ShockwaveFlash.ShockwaveFlash")
$octrl = GUICtrlCreateObj($oswf, 0, 0, 450, 350)
GUICtrlSetResizing(-1, 1);这也不行,真晕!
$oswf.SAlign = "T"
$oswf.movie = "http://s.61baobao.com//common/flash/d/6555.swf"
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|