Skip to main contentdfsdf

    • Frame Windows
    • window
      • the window is a interface to the users

    6 more annotations...

    • Windows messages
    • Using Views
      • view's responsibilites are
        (1) display the document's data graphically
        (2) interpret user input as operations on the document

    6 more annotations...

    • A view may be responsible for handling several different types of input, such as keyboard input,
    • The view is responsible for displaying and modifying the document's data but not for storing it.
      • and provide member function in the document class for view to call

      • note: just for display and modify the document's data
        not store data

    14 more annotations...

    • persistent storage
    • At the heart of document/view are four key classes:

    12 more annotations...

    • he view accesses its document's data either with the GetDocument function, which returns a pointer to the document,
      • In the view class
        (1)In the view's OnDraw function,
        (2)the view uses GetDocument to obtain the document pointer
        (3) the GetDocument() function return Document pointer
        (4) the View use this pointer to access the data in the document

    • A Portrait of the Document/View Architecture
    • CDC provides two member functions
    • CDC Class

    8 more annotations...

    • CWinThread Class  
      <!--Content type: DocStudio. Transform: devdiv2mtps.xslt.-->

      Represents a thread of execution within an application.

    • Override this function to initialize the data structure for a new document. You should call the base class version of this function from your override.
    • If the user chooses the File New command in an SDI application, the framework uses this function to reinitialize the existing document, rather than creating a new one

    1 more annotation...

    • The CWnd class also lets you create a Windows child window for your application.
    • Provides the base functionality of all window classes in the Microsoft Foundation Class Library.

    4 more annotations...

1 - 9 of 9
20 items/page
List Comments (0)