Illustration of mdi application using a project, Visual Basic Programming

Assignment Help:

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.


Related Discussions:- Illustration of mdi application using a project

Executesql - database application, Executesql: The ExecuteSQL is used ...

Executesql: The ExecuteSQL is used for executing the query on the database. The CRecordset uses the RFX mechanism to replace data between field data members of the record set

Vb script basics, This section will discuss the fundamentals of VBScript an...

This section will discuss the fundamentals of VBScript and define concepts such as datatypes, loops and others. VBScript Data Types VBScript contain only one data type called

Message routing - visual basic, Message Routing: The system posts the ...

Message Routing: The system posts the messages to a first-in, first-out queue known as the message queue or it sends the messages directly to a window procedure. The Messages

Properties of object method, Properties: VBScript Err Object ...

Properties: VBScript Err Object   Properties   Description   D escription Property The descriptive string related

Message box - dialog box in visual basic, Message Box: The Message Box...

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

Displaying a file with scrolling - document class, Displaying a file With S...

Displaying a file With Scrolling: To display a file with the scrolling option allows the steps as shown below: 1. Generate a SDI application. 2. In the Step 6 of the App

Appwizard, APPWIZARD   The Appwizard is a tool used for creating a p...

APPWIZARD   The Appwizard is a tool used for creating a project. It follows a series of steps to create a project. Steps Involved in Creating A Project: Step 1: Fr

Application to count the number of possible triangles, A triangle is equila...

A triangle is equilateral if all three sides are equal, isosceles if any two (but no more than two) sides are equal, and scalene if no two sides are equal. A triangle will be input

Visual basic 2012, I am a beginner in Visual basic 2012 and making a data m...

I am a beginner in Visual basic 2012 and making a data management programme with visual basic 2012 as front end and MySql as back end. I want to filter data grid view table with Li

Architecture of win 32 program, ARCHITECTURE OF WIN 32 PROGRAM   ...

ARCHITECTURE OF WIN 32 PROGRAM   Figure: working of Win 3 program The hardware events in the figure are the mouse associated events like the mouse move, left

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd