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

MFC中显示数据控件手工编程绑定数据控件
引用本文:刘雄鹰. MFC中显示数据控件手工编程绑定数据控件[J]. 电脑与信息技术, 2012, 20(4): 49-51
作者姓名:刘雄鹰
作者单位:中南大学信息科学与工程学院,湖南长沙,410075
摘    要:MFC数据库应用编程时,主要使用应用程序向导产生的记录集类和记录视类,或者使用MFC类库提供的有关类两种方式编程,没有充分利用现有的ActiveX控件。因为许多ActiveX绑定数据控件与ADO数据控件不能自动协调工作即不能正确显示数据,如TextBox、DataCombo及DTPICKER;有一些ADO控件方法在对应的访问对象中没有提供,如不带参数的AddNew方法。手工绑定数据控件方式使ActiveX控件之间失去的自动协调得以恢复。使用ActiveX控件编程,代码的重用性大大提高,程序界面质量进一步的好转。

关 键 词:Ⅵsual  c++  Microsoft  Foundation  Class(MFC)  数据库应用编  AddNew  AcfiveX数据绑定控件  AcfiveX  Da组  Objecu(ADO)

Displaying Data Control Binding Data Control with Manual Programming in MFC
LIU Xiong-ying. Displaying Data Control Binding Data Control with Manual Programming in MFC[J]. Computer and Information Technology, 2012, 20(4): 49-51
Authors:LIU Xiong-ying
Affiliation:LIU Xiong-ying (School of Information Science and Engineering,Central South University,Changsha 410075,China)
Abstract:MFC database application programming ways are mostly the one using the classes of recordset and view created by application wizard and the another using related classes provided by MFC library.Because many displaying data controls can not coordinate with data control automatically in MFC,it is that displaying data controls can not show the data rightly,available ActiveX controls are not fully made use of in the two programming ways,such as TextBox、DataCombo as well as DTPICKER controls.some ADO data control’s methods is not implemented by ADO access object,such as the AddNew method with no parameter.By the way of manual programming of binding data to controls,the lost automatic harmony within the controls is restored.The Programming fully with ActiveX controls increases code reusability and causes application interaction quality to be gotten better further.
Keywords:Visual c++  Microso Foundation Class (MFC)  DataBase Application programming  AddNew  ActiveX bindingdata control  ActiveX Data Objects (ADO)
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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