The frame - document view architecture, Visual Basic Programming

The Frame:

As the name suggests, the frame is a combination of the building blocks, structure and the borders of an item. The frame gives the "physical" presence to a window. The frame defines the position of an object with regards to the Windows desktop. The frame gives borders to a window, borders which the user can grab to size, move & resize the object. The frame is also a type of desk which holds the tools required on an application.

The application cannot exist without a frame. To provide a frame to an application, you can derive a class from the CFrameWnd.

The MFC provides a mechanism for notifying the views of modifications to a document through the UpdateAllViews member function of the CDocument class. The UpdateAllViews function traverse the list of views attached to the document. The function calls the OnUpdate of the CViewClass . Invalidate (TRUE) in OnUpdate clears the client region of the view and calls the OnDraw()function of the view class. The Document View architecture permits the variables in the document class to be exhibited in the view class using the GetDocument() function in the view class.

Posted Date: 10/10/2012 1:42:41 AM | Location : United States







Related Discussions:- The frame - document view architecture, Assignment Help, Ask Question on The frame - document view architecture, Get Answer, Expert's Help, The frame - document view architecture Discussions

Write discussion on The frame - document view architecture
Your posts are moderated
Related Questions
The Document: The document contains the user's data. For illustration, after working on a text processor, the user may wish for to save the file. Such an action builds a docum

PROGRAM TO ZOOM A RECTANGLE AS YOU DRAG 1. Generate a SDI application 2. Declare the 2 member variables clicked of Boolean type and m_ptoldpt of CPoint type. Use the class t

Objective: To develop an Application (Excel + VBA) that determines the optimal inventory policy under an All-Units Discount scheme. APPLICATION CHARACTERISTICS Consider the

Message Box: The Message Box can be specified a title as shown in figure to specify the title for the message box follow by the command given below:  Private Sub Command1_C

You are given a console program in both VB and C# that uses a class CElevator (ElevatorAppAssign). The main modules are in the assign directory class files. Below is a discus

Hungarian Notation: The Hungarian Notation was invented by Charles Simonyi from Microsoft. It is a naming convention. It is a reminder of the type of a variable. The Handles h

need help with logic part of loan program

GDI OBJECTS   The CDC provides 5 versions for the GDI objects. They are fonts, brushes, pens, bitmaps and regions. The Select Object function substitutes the current GDI objec

The Dictionary object stores data as key, item pairs. A Dictionary object is the corresponding of a PERL associative array. Items, that can be any form of data, are stored in the a

Write an event procedure to automate the billing system of a supermarket. Give the details of database tables, forms, controls and menu design (if any). Make assumptions, wherever