Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (50.03 KB, 10 trang )
<span class='text_page_counter'>(1)</span><div class='page_container' data-page=1></div>
<span class='text_page_counter'>(2)</span><div class='page_container' data-page=2>
•
– The Application Wizard can generate
single-document interface (SDI) applications that work
with a single document and a single view.
•
– Multiple - document interface (MDI) programs that
can handle multiple documents with multiple
views simultaneously.
•
– A program can have only one application object.
– This is defined automatically by the Application
Wizard at global scope.
•
– A document class object stores application -
specific data, and a view class object displays the
contents of a document object.
•
– Each view object can provide a different
presentation of the document data or a subset of
the same data
•
– Each frame window object stores a pointer to the
currently active view object.
•
– A document template class object is used to tie
together a document, a view, and a window.
– For an SDI application, a CSingleDocTemplate
class does this.
– For an MDI application, the CMultiDocTemplate
class is used.
•
– MFC provides functions to handle just the
individual messages that we are interested in and
to ignore the rest.
•
– A message map for a class is a table of member
functions that handle Windows messages
bounded by a couple of macros.
•
– TextEditor
•
– Sketcher
•
•
•
•
•
•
•
– Page Directive
– Code Section
– Page Layout