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
Problem 1. Describe the concept of exception in .Net environment 2. Explain the process of adding, updating and deleting records with an example 3. Explain DTD elements a

Fixed length strings: The Fixed length strings are declared by identifying the size of the string. For illustration to give a length of 20 for the string place, the declarati

outline and explain in detail any 10 applications of vb.net

How to Include List Box control in your project A list box is used for representing the users with a data. You can prefer the data from the list box for data entry. No editing

I would like to know how to deploy a VB.NET Application using SQL SERVER as a back-end database

You can employ Do...Loop statements to run a block of statements indefinite number of times. The statements are repeated either whilst a condition is True or till a condition becom

I have an external application I open from visual studio (excel). I want to reposition where that opens (top, left).. How do I do that?

Files in a SDI and MDI Application: Both the SDI and MDI projects have 4 implementation files (.cpp extension). These are the files equivalent to the Document Class, View Clas

need help with logic part of loan program

We will discuss scripting language; called VB Script. VBScript is Microsoft's scripting language. It enables us to write programs which enhance the power of Web pages by letting us