经过DLL调用后的窗口,如何附加到主窗口里面 也就是窗口置父,请教高手!~
附上代码: mpg 或者 avi 文件 自己找个代入调试即可#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 640, 466, 192, 124)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$file = "123.mpg"
mciSendString("open "&$file&" alias myvideo")
mciSendString("play myvideo repeat")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func mciSendString($string)
Local $ret
$ret = DllCall("winmm.dll","int","mciSendString","str",$string,"str","","int",65534,"hwnd",0)
If Not @error Then Return $ret[2]
EndFunc
|