【火山PC】火山PC仿mdi多窗口案例源码
本帖最后由 1185907650 于 2021-2-14 14:40 编辑一、创建全局变量
Ctrl D新建类,作为全局变量使用
https://www.lkuaiy.com/image/editor/16025159914816.png
二、创建布局器窗口
①创建布局
Ctrl I创建布局器,改成如下名称,并创建变量
https://www.lkuaiy.com/image/editor/16025160015736.png
https://www.lkuaiy.com/image/editor/16025160099457.png
②添加事件
https://www.lkuaiy.com/image/editor/16025160164492.png
③动态创建子窗口
等出了狗版,可以一布局器一窗口,方便设计
https://www.lkuaiy.com/image/editor/16025160332421.png
https://www.lkuaiy.com/image/editor/16025160455116.png
https://www.lkuaiy.com/image/editor/16025160506807.png
④添加单击事件
https://www.lkuaiy.com/image/editor/16025160582816.png
https://www.lkuaiy.com/image/editor/16025160641058.png
三、开始主窗口布局
①窗口布局
https://www.lkuaiy.com/image/editor/16025160739181.png
https://www.lkuaiy.com/image/editor/16025160805171.png
②创建窗口
https://www.lkuaiy.com/image/editor/16025160878429.png
③删除窗口
https://www.lkuaiy.com/image/editor/16025160948565.png
④调用
https://www.lkuaiy.com/image/editor/16025161037329.png
⑤选择夹事件
https://www.lkuaiy.com/image/editor/16025161139209.png
https://www.lkuaiy.com/image/editor/16025161244793.png
⑥尺寸被改变事件
https://www.lkuaiy.com/image/editor/16025161346091.png
https://www.lkuaiy.com/image/editor/16025161412067.png
四、演示
https://www.lkuaiy.com/image/editor/16025161513463.gif
例子下载:**** Hidden Message *****
666666666666 推广火山,义不容辞 支持一下 好东西 学习一下
支持学习了 如果您要查看本帖隐藏内容请回复 这个最重要的是能从dll中动态载入外部窗口才会有重要价值吧,不然也没什么意思的
学习学习 必须学习!!!!