摘要
单文档多视图的结构有很多的实现方式,大部分采用静态分割视图的方法来实现,但这种方式的缺点是在视图每次切换时都要重新创建视图且在切换之后再销毁视图,不利于视图从文档中提取显示.基于MFC的SDI多视图创建与隐藏的算法改进,是在视图切换时,原来的视图并不销毁而是隐藏起来,通过点击再现.由于创建过的视图当再次点击时只是从隐藏状态转换为显示状态,从而大大提高了应用程序的运行效率.
There are many realization ways for multi-view structure of a single document, most of which adopt the way of static splitting view. But multi-view created by this way has to be recreated when it is switched each time and the view will be destroyed after the switch, which is not conducive for the view ex- tracting date from document to show. The improved algorithm of SDI multi-image creation and hiding was proposed based on MFC, when the view is switched, the original view will not destroyed, but hided. It will display when it is clicked. The data can be saved and the created views will change their status from hiding to visible, therefore, the operating efficiency of application program will be greatly improved.
出处
《成都大学学报(自然科学版)》
2012年第4期370-371,374,共3页
Journal of Chengdu University(Natural Science Edition)
基金
四川省教育厅自然科学基金(11ZA121)资助项目
关键词
单文档
多视图
视图切换
保存
single document
multi-view
views switch
save