找回密码
 加入
搜索
查看: 2435|回复: 2

[GUI管理] 关于DLL调用弹出窗口如何附加到主窗口的问题,也就是窗口置父

[复制链接]
发表于 2014-7-24 02:18:29 | 显示全部楼层 |阅读模式
经过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
 楼主| 发表于 2014-7-24 02:19:47 | 显示全部楼层
补充一下说明,也就是说dll调用弹出的窗口,如何附加到form1 窗口里面
 楼主| 发表于 2014-7-24 20:47:35 | 显示全部楼层
没有大大来关注吗?
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-4 19:48 , Processed in 0.077996 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表