现代电子技术
現代電子技術
현대전자기술
MODERN ELECTRONICS TECHNIQUE
2014年
11期
151-154
,共4页
虚函数%窗口应用程序%消息映射%面向对象技术%MFC
虛函數%窗口應用程序%消息映射%麵嚮對象技術%MFC
허함수%창구응용정서%소식영사%면향대상기술%MFC
virtual function%window application program%message mapping%object-oriented technology%MFC
VC开发环境中的Win32 Application生成窗口应用程序,结构简单清晰,MFC生成窗口应用程序的过程相当复杂。为了剖析MFC生成窗口应用程序的具体过程,深入分析了MFC框架的源代码及其调用关系,结合C++面向对象技术的封装、继承、多态、编译预处理等机制,设计了一个模拟系统,用以模拟MFC生成窗口应用程序的具体过程及响应各种消息,以助于深入领会、理解、应用MFC架构,从而编写更好的应用程序。
VC開髮環境中的Win32 Application生成窗口應用程序,結構簡單清晰,MFC生成窗口應用程序的過程相噹複雜。為瞭剖析MFC生成窗口應用程序的具體過程,深入分析瞭MFC框架的源代碼及其調用關繫,結閤C++麵嚮對象技術的封裝、繼承、多態、編譯預處理等機製,設計瞭一箇模擬繫統,用以模擬MFC生成窗口應用程序的具體過程及響應各種消息,以助于深入領會、理解、應用MFC架構,從而編寫更好的應用程序。
VC개발배경중적Win32 Application생성창구응용정서,결구간단청석,MFC생성창구응용정서적과정상당복잡。위료부석MFC생성창구응용정서적구체과정,심입분석료MFC광가적원대마급기조용관계,결합C++면향대상기술적봉장、계승、다태、편역예처리등궤제,설계료일개모의계통,용이모의MFC생성창구응용정서적구체과정급향응각충소식,이조우심입령회、리해、응용MFC가구,종이편사경호적응용정서。
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.