tailieunhanh - Beginning Visual C plus plus phần 9

Các nút điều khiển cũng có thể được xử lý bởi các Merge và Chia Version Chưa đăng ký - PDFdialog đối tượng trong nhiều trường hợp, nhưng một lần nữa MFC cung cấp lớp CButton để sử dụng trong các tình huống nơi bạn cần một đối tượng lớp học để quản lý một kiểm soát. | Connecting to Data Sources Figure 19-14 shows how data from the database ultimately gets to be displayed by the view. Figure 19-14 The transfer of data between the data members in the CProductSet object that correspond to fields in the Products table and the controls in the dialog box associated with the CProductView object is managed by the DoDataExchange member of CProductView. The code in this function to do this is not in place yet because you first need to add the controls to the dialog that are going to display the data and then link the controls to the recordset data members. You will do that next. Creating the View Dialog The first step is to place the controls on the dialog box so go to Resource View expand the list of dialog resources and double-click Idd_Dbsample_Form. You can delete the static text object with the TODO message from the dialog. If you right-click the dialog box you can choose to view its properties as shown in Figure 19-15. If you scroll down through the properties you ll see that the Style property has been set to Child because the dialog box is going to be a child window and will fill the client area. The Border property has been set to None because if the dialog box is to fill the client area it won t need a border. You ll add a static text control to identify each field from the recordset that you want to display plus an edit control to display it. 943 Chapter 19 Properties - X IDD-DBSAMPLE-FORM Dialog IDIgEditor iimpo PDF Merge and Split Un registered Version - http www .com s 3D Look False Absolute Align False Accept Files False Application Window False Border None Caption Center False Center Mouse False Class Name Client Edge False Clip Children False Clip Siblings False Context Help False Control False Control Parent False Disabled False Font Size MS Shell Dlg 8 Horizontal Scrollbar False ID IDD_DBSAMPLE_FORM Layout RTL False Left Scrollbar False Local Edit False Maximize Box False Name Figure 19-15 You can enlarge the dialog if

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.