关于DLL调用弹出窗口如何附加到主窗口的问题,也就是窗口置父
经过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
EndFunc 补充一下说明,也就是说dll调用弹出的窗口,如何附加到form1 窗口里面 没有大大来关注吗?
页:
[1]