Illustration of mdi application using a project, Visual Basic Programming


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.


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
The body of variable or procedure name must use mixed case and complete as essential to define its purpose. Additionally, procedure names must begin with a verb, such as CloseDialo

MESSAGE LOOP   The message loop is the code in the Win 32 based application. It retrieves messages from the application's message queue and passes these to the related window

The user has to enter a starting balance, the dollar amount of deposits, and the dollar amount of withdrawals. the program then has to calculate the balance

CONTEXT-SENSITIVE HELP   The Context-sensitive help gives online help for the circumstances which is associated with that state. The Context-sensitive help can be implemented

Visual Processing: Our mind groups the things into patterns and this allows us to process the visual information. Understanding and applying how the human mind processes the v

create an application that performs the following operation with the employee file created by the application in programming challenge 1: uses an open dialog box to allow the user

Check Box: The check box control takes the value as on or off or grayed. The grayed one is neither on nor off. The user can transform the setting of the grayed check box.

Enabling ODBC: 1. Select the control panel, programs, setting and then ODBC32 2. Double click on the ODBC32 3. The Settings for an operating system will take place. 4

You can control the flow of your script with conditional statements & looping statements.  By using conditional statements, you can write VBScript code which makes decisions and re