VB自绘菜单流程分析  

Flow about VB self-drawing menu

在线阅读下载全文

作  者:沈群力[1] 周玲玲[1] 

机构地区:[1]上海商学院,上海200235

出  处:《计算机工程与设计》2008年第9期2429-2430,F0003,共3页Computer Engineering and Design

基  金:上海高校选拔培养优秀青年教师科研专项基金项目(05-E-17)

摘  要:Visual Basic 6.0中使用"菜单编辑器"只能创建"平面"菜单,要得到附带图标、界面美观的菜单,需要调用API函数进行自绘菜单,而主菜单与下拉式菜单的触发事件不一样,需要响应不同的消息,使绘制的复杂性大大增加。在具体绘制过程中,首先确定消息机制,然后选取合适的API函数菜,对于菜单中经常使用的方框线条等基本图形先构造绘图函数,通过主函数调用绘图函数的方式来简化问题的复杂性,巧妙地实现了自绘菜单的期望效果。Using "the menu editor" in Visual Basic 6.0 can only establish "the plane" menu. If you want to get beautiful interface menu with additional icon, you should transfer API function in windows for drawing the menus. Usually there are two different menus, main menu and down menu. Because these two menus respond to different accidents, drawing menu will be a complicate task. For a particular menu drawing, first, message should be confirmed, and then adaptable API function should be selected. There are many basic graphics, such as rectangle, line, and so on. Through constructing basic graphic drawing function, it will be very simple that main function transferring these basic graphics drawing function with the expected effect.

关 键 词:消息 API 自绘菜单 HOOK 阴影 

分 类 号:TP311.11[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象