Tải bản đầy đủ (.pdf) (10 trang)

Lecture Visual programming: Chapter 29 - Muhammad Bilal Zafar - TRƯỜNG CÁN BỘ QUẢN LÝ GIÁO DỤC THÀNH PHỐ HỒ CHÍ MINH

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>

<b>Overview </b>


<b>of</b>



</div>
<span class='text_page_counter'>(3)</span><div class='page_container' data-page=3>

Over 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.


</div>
<span class='text_page_counter'>(4)</span><div class='page_container' data-page=4>

Over 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.


</div>
<span class='text_page_counter'>(5)</span><div class='page_container' data-page=5>

Over 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.


</div>
<span class='text_page_counter'>(6)</span><div class='page_container' data-page=6>

Over 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.


</div>
<span class='text_page_counter'>(7)</span><div class='page_container' data-page=7>

Over 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.


</div>
<span class='text_page_counter'>(8)</span><div class='page_container' data-page=8>

Over View…



SDI Example



– TextEditor


MDI Example



– Sketcher



</div>
<span class='text_page_counter'>(9)</span><div class='page_container' data-page=9></div>
<span class='text_page_counter'>(10)</span><div class='page_container' data-page=10>

Contents



Classic ASP - Active Server Pages



ASP.NET



ASP.NET Component Model



Environmental Setup


ASP.NET Life Cycle



ASP.NET Page Stages



ASP.NET Page Life Cycle Events



ASP.NET Page



– Page Directive
– Code Section
– Page Layout


</div>

<!--links-->

×