首页 | 本学科首页   官方微博 | 高级检索  
     检索      

MFC窗口创建过程的研究
引用本文:卫洪春,彭小利,蒲国林.MFC窗口创建过程的研究[J].现代电子技术,2014(11):151-154.
作者姓名:卫洪春  彭小利  蒲国林
作者单位:四川文理学院计算机科学系,四川达州635000
基金项目:国家自然科学基金(61152003);四川省青年基金(10ZB085);四川文理学院项目(2013JY06)
摘    要:VC开发环境中的Win32 Application生成窗口应用程序,结构简单清晰,MFC生成窗口应用程序的过程相当复杂。为了剖析MFC生成窗口应用程序的具体过程,深入分析了MFC框架的源代码及其调用关系,结合C++面向对象技术的封装、继承、多态、编译预处理等机制,设计了一个模拟系统,用以模拟MFC生成窗口应用程序的具体过程及响应各种消息,以助于深入领会、理解、应用MFC架构,从而编写更好的应用程序。

关 键 词:虚函数  窗口应用程序  消息映射  面向对象技术  MFC

Research on process of MFC window creation
WEI Hong-chun,PENG Xiao-li,PU Guo-lin.Research on process of MFC window creation[J].Modern Electronic Technique,2014(11):151-154.
Authors:WEI Hong-chun  PENG Xiao-li  PU Guo-lin
Institution:(Department of Computer Science, Sichuan University of Arts and Science, Dazhou 635000, China)
Abstract:The program structure generated by Win32 Application in VC development environment is simple and clear. The generation process of MFC generated window application program is fairly complex. In order to analyze the specific process of the MFC generated window application program,the source code of MFC framework and its calling relationship is studied deep-ly. In combination with encapsulation,inheritance,polymorphism and compiling preprocessor mechanisms of C++ object-orien-ted technology,a simulation system was designed to simulate the specific process of MFC generated window application pro-gram,and deal with various messages. It can help programmers to further comprehend and apply MFC architecture to write bet-ter Window-based application program.
Keywords:MFC  virtual function  window application program  message mapping  object-oriented technology  MFC
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号