火山PC深入玩转自定义菜单
本帖最后由 1185907650 于 2022-1-11 09:26 编辑一、创建系统菜单Ctrl+I,快速插入,如下https://www.lkuaiy.com/image/editor/1641535147049177.png
二、封装类①创建模板类Ctrl+D创建类,如下图https://www.lkuaiy.com/image/editor/1641535157094219.png
②封装取图标句柄对象https://www.lkuaiy.com/image/editor/1641535**383511.pnghttps://www.lkuaiy.com/image/editor/1641535169830934.pnghttps://www.lkuaiy.com/image/editor/1641535176118430.png
③创建菜单项https://www.lkuaiy.com/image/editor/1641535180712132.pnghttps://www.lkuaiy.com/image/editor/1641535185411670.png
④创建下拉项及插入https://www.lkuaiy.com/image/editor/1641535188933500.pnghttps://www.lkuaiy.com/image/editor/1641535192132643.png
⑤选中和取消https://www.lkuaiy.com/image/editor/1641535197613552.png
⑥启用禁用https://www.lkuaiy.com/image/editor/1641535202497855.png
⑦删除修改https://www.lkuaiy.com/image/editor/1641535206718233.png
⑧**出菜单https://www.lkuaiy.com/image/editor/1641535210280165.png
三、调用①修改系统菜单https://www.lkuaiy.com/image/editor/1641535214908500.png
②创建https://www.lkuaiy.com/image/editor/1641535219242234.pnghttps://www.lkuaiy.com/image/editor/1641535222560834.png
③修改、禁用等https://www.lkuaiy.com/image/editor/1641535226850417.png
④触发菜单事件https://www.lkuaiy.com/image/editor/1641535232145247.png
四、演示https://www.lkuaiy.com/image/editor/1641535236402625.gif
例子下载:**** Hidden Message *****
很不错!!!辛辛苦了,收下 日常一顶 日常一顶 官方连个高级菜单都没空封装! 学习一下。 如果好用,可以自己改改
学习一下 感谢分享 收下学习