tailieunhanh - Beginning Visual C plus plus phần 7

bắt đầu trình gỡ rối theo cách này thực hiện toàn bộ chương trình mà không dừng lại. Tất nhiên, chỉ vì bạn bắt đầu gỡ lỗi trong cách này không có nghĩa là bạn phải tiếp tục sử dụng nó, tại mỗi ngăn chặn trong việc thực hiện, bạn có thể chọn bất kỳ trong những cách có thể di chuyển qua các mã của bạn. Bắt đầu Với tùy chọn Verifier ứng dụng chạy thời gian xác minh | Working with Menus and Toolbars Adding Message Handlers to Update the User Interface iimpo PDF To set the check mark correctly for the new menus you need to add the second kind of message handler Mergeand-SplitUnregistered Version - httpV ems _ This sort of message handler is specifically aimed at updating the menu item properties before the item is displayed. Go back to viewing the file in the Editor window. Right-click the Black item in the Color menu and select Add Event Handler from the pop-up menu. You can then select UPDATE_COMMAND_UI as the message type and CSketcherDoc as the class as shown in Figure 13-10. Figure 13-10 The name for an update function has been generated md OnUpdateColorBlack . Because this seems a reasonable name for the function you want click the Add and Edit button and have the Event Handler wizard generate it. As well as generating the skeleton function definition in its declaration is added to the class definition. An entry for it is also made in the message map that looks like this ON_UPDATE_COMMAND_UI ID_COLOR_BLACK OnUpdateColorBlack This uses the ON_UPDATE_COMMAND_UI macro that identifies the function you have just generated as the handler to deal with update messages corresponding to the ID shown. You could now enter the code for the new handler but I ll let you add command update handlers for each of the menu items for both the Color and Element menus first. Coding a Command Update Handler You can access the code for the OnUpdateColorBlack handler in the CSketcherDoc class by selecting the function in Class View. This is the skeleton code for the function 697 Chapter 13 void CSketcherDoc OnUpdateColorBlack CCmdUI pCmdUI TODO Add your command update UI handler code here iimpo PDF Merge and Split Unregistered Version - http The argument passed to the handler is a pointer to an object of the CCmdUI class type. This is an MFC class that is only used with update .

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.