Forces the parent of the next window to open. This function must be used just before
打开.
This function allows a WinDev window:
- to be child of another application.
- to be child of a non-WinDev window.
Caution: This function is an advanced function.
// Opening code of the application project
ParentHandle是系统整数型=命令行("HPARENT")
如果ParentHandle不等于0,那么
跟踪(ParentHandle)
句柄下一个父窗口(ParentHandle)
结束
打开(WIN_Window1)
结束程序()
// Code of the caller
Parent是系统整数型=句柄("")
启动应用程序("MyApplication.exe"+" "+"/HPARENT="+Parent)
语法
句柄下一个父窗口(<Window Handle>)
<Window Handle>: Integer
Handle of the parent window to use.
注意
Reminder: The handle of a window is returned by
句柄 or
系统窗口句柄.