检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:胡昌林[1] 魏保华[1] 李永军[1] 刘鹏远[1]
机构地区:[1]石家庄军械工程学院导弹工程系,河北石家庄050003
出 处:《微计算机信息》2006年第09X期239-241,共3页Control & Automation
基 金:总装备部基金项目(编号不公开)
摘 要:首先陈述了VC编程中的一个难题——所有视图类都只能从MFC提供的类继承。然后说明如何变通的解决这个问题,使得可以从自定义的类中继承视图类,从而使得自定义的视图类有良好的层次结构。然后介绍了模板方法模式在这些视图类的界面消息处理函数中的应用。最后,给出了一个数据库应用方面的实例。Firstly, a problem in development in VC is presented, which is that all view classes should be derived from classes provided in MFC. Then a method is proposed to solve this problem, enabling deriving view classes from self-defined classes. In this way, the derived view classes possess a good hiberarchy. And then, template method pattern is introduced to facilitate message handling in those view classes. Finally, an example in database application is employed for demonstration.
分 类 号:TM769[电气工程—电力系统及自动化]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.19.55.254