Microsoft Visual C++ Windows Applications by Example phần 9

Các nhà xây dựng sao chép và điều hành việc giao bản sao các tế bào từng người một và thiết lập con trỏ ma trận tế bào cho mỗi tế bào. Cho thấy Điều này nghĩa là tế bào đều có một con trỏ đến ma trận cũng như mục tiêu thiết lập liên quan đến ma trận. | The Word Application The Word application is a word processor program. It is capable of handling text on the character level. That is unlike the Draw and Calc applications single characters can have their own font size and style. The application also supports paragraph management with left center right and justified alignment cut and paste load and save as well as print preview. The following screenshot depicts a classic example of the Word Application In this application we have five classes to work with. Line is a small class that keeps track of the first and last characters as well as the height of a line in a paragraph. Position is also a small class it handles a position in a document. It has two fields to keep track of the paragraph and character positions. A Word document consists of one or more paragraphs. A paragraph may span one or more lines. The Paragraph class handles one paragraph. It has methods for splitting and merging paragraphs. The Word Application Page is another small class it keeps track of the first and last paragraphs on a page. A paragraph is never split into two pages. If a paragraph does not fit on the rest of the page it is moved in full to the next page. The CWordDoc class handles the internal logic of the application. It manages the paragraphs of the document. A document always has at least one paragraph. It also keeps track of the pages of the document. The CWordview class accepts input from the mouse and keyboard. It also displays text in the window client area. We use the Application Wizard to generate the classes CWordApp CMainFrame CChildFrame CWordDoc CWordView and CAboutDlg. We follow the default settings with the exception of the File extension and File type long name let us set it to Wrd and A Word Document. 330 Chapter 9 We will modify cwordDoc and cwordview as we develop the application. Similar to the earlier applications we need to add some include lines to . Otherwise we will not alter the classes. .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
5    79    2    21-06-2024
Đã 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.