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
Sets or returns wholly qualified path to a Help File. If Help file is indicated in HelpFile, it is called automatically when the user clicks Help button (or presses the F1 key) in

translate''Q''for insert into element and''Q''delete for deletion element into programming language

You can employ the SCRIPT element to add VBScript code to an HTML page. The SCRIPT Tag VBScript code is written inside paired SCRIPT tags. For instance, a process to test

Variant Type: If no data type is related with the VB variables, it takes the default variant type. The variable x will be of the variant type when the two declarations below a

A For Each...Next loop is similar to a For...Next loop. Rather than repeating the statements a particular number of times, For Each...Next loop repeats group of statements for each

#questiontypes of lines and how to draw


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

The View: The view is used for visualising. For illustration, while performing word processing, the user works on a sequence of words which compose the text. If a user is perf

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