自画菜单链接库完整版

上传者: Soyokaze | 上传时间: 2023-10-14 21:13:07 | 文件大小: 450KB | 文件类型: RAR
此动态链接库是专门用于美化程序的菜单的。实现方法是在原有菜单的基础上直接调用,非常方便。库经过长时间的修改,已经很完善了。现在将其发布出来,供大家使用。 【发行文件】 DLL文件:cutemenu.dll LIB文件:cutemenu.lib VC++头文件:cutemenu.h VB声明模块:cutemenu.bas PB包含文件:cutemenu.pbi 帮助文件:help.chm 【特点】 1、内部实现完全依赖已经建立好的菜单,没有另行建立任何结构数组用来保存自绘菜单信息。 2、用户可以自己设置自绘风格(30多项)。支持渐变填充、Alpha混合、32位透明位图菜单项,界面美观。 3、使用方便,仅在适当的时候调用3个函数即可。 4、库文件体积小巧。 【编译器】 PureBasic 4.20 【使用说明】 文件夹“Demo Code”中有 Visual C++ 6.0、Visual Basic 6.0、PureBasic 三种 IDE 环境下的演示代码,用户可根据具体情况选择参考。 使用的具体思路是对已存在的菜单调用 AssignOwnerDraw(HMENU hMenu, UINT fSubIncluded) 函数,该函数会为该菜单的每项设置 MFT_OWNERDRAW 标志。如果 fSubIncluded 不为0,函数会遍历该菜单下挂的所有子菜单的各菜单项。这个函数可以在加载菜单后就调用,也可以在 WM_INITMENU/WM_INITMENUPOPUP 消息中即时调用。之后,在消息循环中的 WM_MEASUREITEM 和 WM_DRAWITEM 消息分别调用 MeasureItem(LPMEASUREITEMSTRUCT lpmis) 和 DrawItem(LPDRAWITEMSTRUCT lpdis) 实现自绘。 链接库刚运行时的菜单风格是当前系统默认的,用户可以凭借库里提供的另两个功能强大的函数 GetMenuStyle(LPMENUSTYLE lpms) 和 SetMenuStyle(LPMENUSTYLE lpms) 实现项目颇为丰富(30多项)的菜单风格设置。恰当地设置各参数,可以逼真地模仿别的软件的菜单风格,也可以随心所欲地实现自己独特的风格。 各函数的调用和其它一些技术问题请参阅目录下的帮助文档。

文件下载

资源详情

[{"title":"( 63 个子文件 450KB ) 自画菜单链接库完整版","children":[{"title":"Cutemenu DLL","children":[{"title":"cutemenu.dll <span style='color:#111;'> 8.50KB </span>","children":null,"spread":false},{"title":"cutemenu.h <span style='color:#111;'> 3.37KB </span>","children":null,"spread":false},{"title":"Help.chm <span style='color:#111;'> 125.75KB </span>","children":null,"spread":false},{"title":"cutemenu.pbi <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"Snap","children":[{"title":"office.png <span style='color:#111;'> 24.22KB </span>","children":null,"spread":false},{"title":"aero.png <span style='color:#111;'> 26.20KB </span>","children":null,"spread":false},{"title":"gradient.png <span style='color:#111;'> 25.27KB </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 22.00KB </span>","children":null,"spread":false},{"title":"3d.png <span style='color:#111;'> 24.29KB </span>","children":null,"spread":false},{"title":"dafault.png <span style='color:#111;'> 23.95KB </span>","children":null,"spread":false}],"spread":true},{"title":"Readme.txt <span style='color:#111;'> 2.84KB </span>","children":null,"spread":false},{"title":"cutemenu.bas <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false},{"title":"说明.txt <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"cutemenu.lib <span style='color:#111;'> 2.39KB </span>","children":null,"spread":false},{"title":"Demo Code","children":[{"title":"VB","children":[{"title":"cutemenu.dll <span style='color:#111;'> 8.50KB </span>","children":null,"spread":false},{"title":"Demo.exe <span style='color:#111;'> 96.00KB </span>","children":null,"spread":false},{"title":"Form1.frm <span style='color:#111;'> 11.90KB </span>","children":null,"spread":false},{"title":"mdlSubClass.bas <span style='color:#111;'> 2.45KB </span>","children":null,"spread":false},{"title":"MSSCCPRJ.SCC <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"Form1.frx <span style='color:#111;'> 778B </span>","children":null,"spread":false},{"title":"Demo.vbp <span style='color:#111;'> 824B </span>","children":null,"spread":false},{"title":"clsWndMsg.cls <span style='color:#111;'> 541B </span>","children":null,"spread":false},{"title":"myrc.RES <span style='color:#111;'> 66.93KB </span>","children":null,"spread":false},{"title":"icon.ico <span style='color:#111;'> 766B </span>","children":null,"spread":false},{"title":"cutemenu.bas <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false},{"title":"Demo.vbw <span style='color:#111;'> 154B </span>","children":null,"spread":false}],"spread":false},{"title":"PB","children":[{"title":"cutemenu.dll <span style='color:#111;'> 8.50KB </span>","children":null,"spread":false},{"title":"Demo.exe <span style='color:#111;'> 82.50KB </span>","children":null,"spread":false},{"title":"Cute Menu.pb <span style='color:#111;'> 6.59KB </span>","children":null,"spread":false},{"title":"icon.ico <span style='color:#111;'> 766B </span>","children":null,"spread":false},{"title":"include.pbi <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"check.bmp <span style='color:#111;'> 822B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 816B </span>","children":null,"spread":false},{"title":"sub.bmp <span style='color:#111;'> 822B </span>","children":null,"spread":false},{"title":"address.bmp <span style='color:#111;'> 64.05KB </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 9.50KB </span>","children":null,"spread":false},{"title":"myrc.rc <span style='color:#111;'> 2.97KB </span>","children":null,"spread":false},{"title":"pie.bmp <span style='color:#111;'> 822B </span>","children":null,"spread":false}],"spread":false},{"title":"cutemenu.lib <span style='color:#111;'> 2.39KB </span>","children":null,"spread":false}],"spread":true},{"title":"VC","children":[{"title":"Cute Menu.ico <span style='color:#111;'> 766B </span>","children":null,"spread":false},{"title":"check.bmp <span style='color:#111;'> 822B </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 296B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"sub.bmp <span style='color:#111;'> 822B </span>","children":null,"spread":false},{"title":"cutemenu.h <span style='color:#111;'> 3.37KB </span>","children":null,"spread":false},{"title":"Cute Menu.rc <span style='color:#111;'> 4.17KB </span>","children":null,"spread":false},{"title":"Cute Menu.plg <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"Cute Menu.dsp <span style='color:#111;'> 4.67KB </span>","children":null,"spread":false},{"title":"Cute Menu.cpp <span style='color:#111;'> 9.16KB </span>","children":null,"spread":false},{"title":"Cute Menu.h <span style='color:#111;'> 332B </span>","children":null,"spread":false},{"title":"small.ico <span style='color:#111;'> 766B </span>","children":null,"spread":false},{"title":"address.bmp <span style='color:#111;'> 64.05KB </span>","children":null,"spread":false},{"title":"Cute Menu.aps <span style='color:#111;'> 72.36KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"cutemenu.dll <span style='color:#111;'> 8.50KB </span>","children":null,"spread":false},{"title":"Cute Menu.exe <span style='color:#111;'> 256.10KB </span>","children":null,"spread":false}],"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 986B </span>","children":null,"spread":false},{"title":"Cute Menu.opt <span style='color:#111;'> 52.50KB </span>","children":null,"spread":false},{"title":"pie.bmp <span style='color:#111;'> 822B </span>","children":null,"spread":false},{"title":"Cute Menu.ncb <span style='color:#111;'> 65.00KB </span>","children":null,"spread":false},{"title":"Cute Menu.dsw <span style='color:#111;'> 543B </span>","children":null,"spread":false},{"title":"cutemenu.lib <span style='color:#111;'> 2.39KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"cutemenu.exp <span style='color:#111;'> 543B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明