Lecture Visual programming: Chapter 27 - Muhammad Bilal Zafar

The following will be discussed in this chapter: SDT's for L-attributed definitions, intermediate-code generation, variants of syntax trees, directed acyclic graphs for expressions, the value-number method for constructing DAG's, three-address code, addresses and instructions, quadruples, triples. | LESSON 27 Overview of Previous Lesson(s) Over View 3 Program Over View Microsoft Foundation Classes (MFC) A set of predefined classes upon which Windows programming with Visual C++ is built. Represents an oo approach to Windows programming that encapsulates the Windows API. MFC does not adhere strictly to the object – oriented principles of encapsulation and data hiding. 4 Over View Windows Form An entity that represents a window of some kind. A Windows form is encapsulated by a subclass of the System::Windows::Forms::Form class. Lets try a Message box with previous Form 5 TODAY’S LESSON Contents Basic Elements of MFC program Documents View Document Templates Creating MFC Applications 7 Basic Elements of MFC The structure of an MFC program incorporates two application - oriented entities. A document A view 8 What is a document ?? A document is the collection of data in our application with which the user interacts. It could be a data for A game A geometric model, A text file or anything we want. 9 What is a document Document class is derived from the CDocument class in the MFC library. Application is not limited to a single document type. We can define multiple document classes when there are several different kinds of documents involved in application. 10 Document Interfaces The Single Document Interface (SDI), is supported by the MFC library for programs that require only one document to be open at a time. A program using this interface is referred to as an SDI application. MDI is used for programs needing several documents to be open at one time. 11 MDI MDI manages to handle Multiple documents of one type. Documents of different types simultaneously with each document displayed in its own window. Each document is displayed in a child window of the application window. 12 View A view is an object that provides a mechanism for displaying some or all of the data stored in a document. It defines how the data is to be displayed in a window How the user can . | LESSON 27 Overview of Previous Lesson(s) Over View 3 Program Over View Microsoft Foundation Classes (MFC) A set of predefined classes upon which Windows programming with Visual C++ is built. Represents an oo approach to Windows programming that encapsulates the Windows API. MFC does not adhere strictly to the object – oriented principles of encapsulation and data hiding. 4 Over View Windows Form An entity that represents a window of some kind. A Windows form is encapsulated by a subclass of the System::Windows::Forms::Form class. Lets try a Message box with previous Form 5 TODAY’S LESSON Contents Basic Elements of MFC program Documents View Document Templates Creating MFC Applications 7 Basic Elements of MFC The structure of an MFC program incorporates two application - oriented entities. A document A view 8 What is a document ?? A document is the collection of data in our application with which the user interacts. It could be a data for A game A geometric model, A text file or

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã 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.