The basic element of the Multi-Document Interface (MDI) application is the MDI child form, because they are the center of user interaction.In the following process, an MDI child form that displays the RichTextBox Control is created, which is similar to most word processing applications. Replacing the RichTextBox Control with other controls, such as the DataGrid c
I. OverviewThe MDI window contains a frame window and a dry window.In fact, the Framework Window itself is a common main window, but its customers are overwritten by a special window.This special window is a pre-defined window class named "MDICLIENT ". It manages the child windows of MDI.
Ii. Window Creation1. register an MDI framework window class and provide me
In the previous article I introduced the application of the Tangrammini component in the SDI program, from which I plan to write two to three articles on the use of Tangrammini components in MDI applications, in fact the application in MDI is consistent with the application creation steps in SDI. After using the Tangrammini component in an MDI application, it mak
An MDI (multiple-document interface) application means that a user can open several documents at the same time, and each document appears in a separate window in the client area of the main window of the application. Like word processor word is a typical MDI application, you can open and use multiple documents in Word, you can also create and open multiple slide applications in PowerPoint, and the spreadshe
Implementing MDI child forms in DelphiUsing MDI to browse child windows, with Window management function, the same screen to view the content of multiple Web pages① Multiple Document form (MDI)The MDI form is a form system with a master structure, and Microsoft Word is a typical example. You need at least two forms in
I'm writing an MFC multiple document (MDI) application. In the parent window, how do I check that all MDI child windows are turned off? If all is turned off, then I want to activate a pane in my main window.
Ramesh
Windows and MFC do not provide any specialized functions to get the number of MDI child windows, but it is easy to achieve the functionality you wan
Http://hi.baidu.com/ivanbobo/blog/item/63571d1744ea941bc83d6ddd.html
Declare the parent window object in the Child Window. For example, if the parent window is mdiparent1 and the Child Window is MDI, you only need to call the parent window to declare the object, the method is as follows:
Public partial class MDI: Form{Public Delegate void posttext (string text );Public event posttext pt;Public
This tutorial shows you how to create an MDI application. In fact, it's not very difficult.
Theory:
Multi-Document Interface (MDI) is a specification for applications that process multiple documents at the same time. You are very familiar with Notepad. It is an example of a single document interface (SDI). Notepad can only work with one document at a time. If you want to open another document, you must fi
be used.
For an application using the MFC Document-view architecture, it is more appropriate to define different view classes and switch between them when necessary. this shall overcome all the disadvantages listed before. there probably will be some features common to all views for the same type of document, so it is a good idea to have a direct cview descendant that implement all the functionality common to all view types. the views used by the document shocould be descendants of this class
See a friend in the forum ask, how can you guarantee that in the MDI main form, a subform of the same type can only be opened once, and then open just to activate the form that was originally opened. This request I have encountered before writing a program. The basic ideas I have achieved are:
Typically, each subform inherits from the form type, different subforms represent different functions, so you just need to determine if there is a subform type
Previously, when setting the background of an MDI form, the following code was used to implement: (set IsMdiContainer to False)To create an MDI container manuallyMdiclient mic = new Mdiclient ();Mic. Dock = DockStyle.Fill;Mic. BackgroundImage = Image.FromFile ("Bg.bmp");Today I stumbled across a simpler approach:Set the backgroundimage of the form to the background image you want.If the form is an
Improvements and supplements to the article "in-depth MDI customer Window Programming" Inventec group Electronic Technology Co., Ltd.To the sea ---- I read the article "deep into MDI client Window Programming" published in your newspaper. I am very interested in this article. I think it is very good. The whole window is shown in (Omitted: ---- However, the disadvantage is that when I drag the
MDI refers to opening multiple control forms in the same form1, set: Ismdicontainer:true in the attribute;The form becomes gray to become an MDI form container2, the MDI generally use the menu as the open way3. The child form opens in MDI and needs to be set in the MDI form
Modifying the primary background of an MDI window is not recommended by MS, but you can use the following method if necessary:
1 --Principle:The MDI window has a window object called mdiclient as the main background window. to modify the background of the MDI window, you must modify the background of the mdiclient object.
2 --Key:How to obtain mdiclient objec
Document directory
Use Visual C #. NET to create a sample Windows Application
Use Visual C #. NET to create a sample Windows Application
In C # winform, the MDI parent form changes the background color. When you use a Windows form as an MDI parent form
BackgroundColorAttribute,
Application backgroundColor settings determine the background color of the form. The following steps demonstrate how to program
Compared with SDI, MDI and Multiple Document Interface (Multi-Document Interface) are widely used. For versions earlier than Word XP, MDI is used (later versions should also be counted as MDI, but the form is somewhat different and looks like SDI), VS/.. NET and many other software are also MDI, which is convenient and
The author in the development of the project to add color bitmap in the MDI program to beautify the interface, but also experimented with several methods, but there are a number of small problems, by way of looking for information, and finally successfully achieved this function, now my implementation method introduced to everyone.The first thing to be clear is that the main frame window for an MDI applicat
Using MDI to browse child windows, with Window management function, the same screen to view the content of multiple Web pages① Multiple Document form (MDI)The MDI form is a form system with a master structure, and Microsoft Word is a typical example. You need at least two forms in the MDI system, one of which can only
For the charging system of the data center that has just been claimed.
In this system, the outermost layer is an MDI form. Other operations are performed in the MDI subform.
When we see this form, we do not hesitate to say that the main form of this form is an MDI form. All others are their subforms.
Therefore, when creating a system, create an
If you have multiple subforms open at the same time in an MDI form, the interface can be very confusing and not easy to navigate if you do not adjust its order. So how do we solve this problem? We can arrange subforms in the parent form of a multi-document interface by using the LayoutMDI method with the MDILayout enumeration.Grammar:public void LayoutMDI (mdilayout value)Value: is one of the MDILayout enumeration values used to define the layout of t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.