functions that handle Windows messages bounded by a couple of macros. 7.[r]
Trang 1LESSON 29
Trang 2Overview
of Previous Lesson(s)
Trang 3Over View
• SDI programs
– The Application Wizard can generate single-document interface (SDI) applications that work
with a single document and a single view
• MDI programs
– Multiple - document interface (MDI) programs that
can handle multiple documents with multiple
views simultaneously
3
Trang 4Over View
• The application object
– A program can have only one application object
– This is defined automatically by the Application
Wizard at global scope
• Document objects
– A document class object stores application - specific data, and a view class object displays the
contents of a document object
4
Trang 5Over View
• The View Object
– Each view object can provide a different presentation of the document data or a subset of
the same data
• Windows Frame Object
– Each frame window object stores a pointer to the
currently active view object
5
Trang 6Over View
• Document templates
– 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
6
Trang 7Over View…
• Message Handlers
– MFC provides functions to handle just the individual messages that we are interested in and
to ignore the rest
• Message Map
– A message map for a class is a table of member
functions that handle Windows messages
bounded by a couple of macros
7
Trang 8Over View…
• SDI Example
– TextEditor
• MDI Example
– Sketcher
8
Trang 9TODAY’S LESSON
Trang 10• Classic ASP - Active Server Pages
• Environmental Setup
• ASP.NET Life Cycle
• ASP.NET Page Life Cycle Events
– Page Directive
– Code Section
– Page Layout
10