Illustration of mdi application using a project, Visual Basic Programming

ILLUSTRATION OF MDI APPLICATION USING A PROJECT

1. Choose the MDI option while generating the project by using the Appwizard.

2. Add the WM_LBUTTONDOWN message for the view object id

3. Type the below coding in the left button down

CMDIChildWnd *pChild = (CMDIChildWnd *) GetParentFrame();

pChild->MDIMaximize ();

CMDIFrameWnd *pParent = pChild-> GetMDIFrame();

pParent->MDINext ();

4. Construct and execute the project.

5. While you click a File and then the New menu item another child window will open as shown in figure.

6. This output will switch between the MDI 1 and 2. Whenever you click the left button down, the GetParentFrame() will return the handle of the parent window. The address is type cast to CMDIChildWnd. The function MDIMaximize () will display the window on full screen. The GetMDIFrame() will return the handle of the MDI window. The function MDINEXT() exhibits the next MDI window.

981_MDI.png

Figure: MDI

If you click the New continuously the multiple windows keeps opening. For a MDI application Appwizard derives the CMainFrame class from the CMDIFrameWnd.

Posted Date: 10/10/2012 2:10:20 AM | Location : United States







Related Discussions:- Illustration of mdi application using a project, Assignment Help, Ask Question on Illustration of mdi application using a project, Get Answer, Expert's Help, Illustration of mdi application using a project Discussions

Write discussion on Illustration of mdi application using a project
Your posts are moderated
Related Questions
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

Mostly time, you just desire to assign a single value to a variable you have declared. A variable having a single value is a scalar variable. At other times, this is convenient to

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

Write a program that permits the user to order a product from inventory. The user selects the product and enters the quantity. If there is sufficient quantity on hand of the produc

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.


FILE SYSTEM CONTROLS There are 3 file system controls as shown in figure. The drive list box, directory list box & the file list box. The drive list box control is used to exhi

HOW TO SOLVE ORDINARY DIFFERENTIAL EQUETION IN VISUAL BASIC PROGRAMMING

THREE MODELS FOR USER INTERFACE DESIGN   The 3 models for the user interface design are the implementation model, mental model &the manifest model. The Implementation Mod

USE OF SERIALIZE FUNCTION IN DOCUMENT CLASS TO IMPLEMENT FILE void CStoreDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { // TODO: add storing code here }