期刊文献+

利用虚函数实现鼠标、键盘事件的模块化

Using Virtual Function to Realize Modulation of Mouse and Keyboard Events
下载PDF
导出
摘要 虚函数是C++中实现多态性的一个重要机制,常常使用它在父类中对某种操作提供一个框架,而在不同的子类中为该框架提供不同的实现,据此特点,介绍了目前图形图像处理软件中常用的一种鼠标键盘事件的新的封装机制。该机制以面向对象的多态性及技术基础,可实现鼠标键盘事件的模块化和不同功能间的自动切换。 Virt.ual function is one of the important facilities to support polymorphism in C++, normally the virtual function mechanism is used to provide the frame and the declaration of public methods of some operations for the parent or base class, then the implementation details of the operation would been given in the derived classes individually. With this characteristic, this paper presents a new packaging mechanism which could modulate mouse and keyboard events in graphic and image processing software. On the basis of object-oriented polymorphism technique, the mechanism also can realize automatization of mouse and keyboard and automatic exchange among different events.
机构地区 中国地质大学
出处 《电脑开发与应用》 2006年第5期36-37,共2页 Computer Development & Applications
关键词 虚函数 多态性机制 模块化 消息映射 VC++ virtual function, polymorphism mechanism, automatization, message interaction, VC++
  • 相关文献

参考文献4

二级参考文献8

  • 1王燕.面向对象的理论与C++实践[M].北京:清华大学出版社,1996..
  • 2侯俊杰.深入浅出MFC[M].武汉:华中科技大学出版社,2001..
  • 3邵维忠,面向对象的系统分析,1998年
  • 4郑人杰,实用软件工程,1997年
  • 5王燕,面向对象的理论与C++实践,1996年
  • 6BjarneStroutsup.The C + + Programming Language(Special Edition)[M].北京:高等教育出版社,2001..
  • 7ZippmanL 侯捷译.深度搜索C + +对象模型[M].武汉:华中科技大学出版社,2001..
  • 8麦中凡.C + +程序设计语言教程(语言基础)[M].北京:北京航空航天大学出版社,1996..

共引文献8

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部