tailieunhanh - Beginning Visual C plus plus phần 10

MFC cũng cung cấp một bổ sung đầy đủ các lớp học để hỗ trợ các điều khiển khác. Bởi vì một điều khiển là một cửa sổ, tất cả chúng đều bắt nguồn từ bộ điều khiển tiêu chuẩn được hỗ trợ bởi MFC và biên tập các tài nguyên được gọi là điều khiển phổ biến. Điều khiển thông thường bao gồm tất cả các điều khiển bạn đã thấy, | Chapter 21 DialogResult result MessageBox Show L Upper limit upper L Lower limit lower L nUpper limit must be at least 5 greater that the lower limit. iimpo PDF Merge and SpiitLUnregiSiered Version - http MessageBoxButtons OKCancel MessageBoxIcon Error if result DialogResult OK DialogResult DialogResult None else DialogResult DialogResult Cancel else upperLimit upper lowerLimit lower Because the third argument to the Show function is MessageBoxButtons OKCancel the message box now has two buttons as shown in Figure 21-23. Figure 21-23 In the Click event handler for the OK button in the limits dialog box you store the return value from the Show function in result. The type for result has to be specified using the scope resolution operator. Otherwise it is interpreted by the compiler as the DialogResult property for the lottoLimitsDialog object and the code does not compile. If result contains the value DialogResult OK you set the DialogResult property for the lottoLimitsDialog object to DialogResult None which prevents the dialog box from closing and allows the limit to be changed. Otherwise you set the DialogResult property for the dialog to Dialog Cancel which has the same effect as clicking the Cancel button for the dialog box so it closes. 1066 Applications Using Windows Forms Handler the Reset Menu Item Event You can implement the event handler for the Reset menu item like this ỉimpo PDF Merge andtSplit Unregistered eVersions-shttp EventArgs- e if lottoTab- Visible Reset user limits for Lotto lottoUserMaximum lottoUpperLimit lottoUserMinimum lottoLowerLimit lottoLimitsDialog- UpperLimit lottoUpperLimit lottoLimitsDialog- LowerLimit lottoLowerLimit else if euroTab- Visible Reset user limits for Euromillions euroUserMaximum euroUpperLimit euroUserMinimum euroLowerLimit euroStarsUserMaximum euroStarsUpperLimit euroStarsUserMinimum euroStarsLowerLimit Code to update Euromillions limits dialog. This just resets the limits in the .

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.