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
At the Computer College of Beijing University of Technology, Mr. Hu's "Deep MDI client window Programming" article discusses two ways to change the background of MDI client windows in the learning process, and describes one of the implementation methods, as well as sample code. I admire the author's diligent attitude towards learning, and at the same time suggest the solutions I have taken when I encounter
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
Today, I would like-share the GM MDI multiple pass thru programming Tool installation Instruction step by step:Step 1:open The Software folder, double click "CD Start" →click "Install".Step 2:install the software in Order:jav A.EXE; Validat.exe; Gmmdi Software.exe; Tech3Win.exe;.Step 3:automatic Install all the files above and when has the message "Copying PCMCIA files:", please don ' t touch any Keyboar D or mouse, the GM
================================== Declaration ==================================This article is original, reproduced in the text of the influential annotated author and source, and to ensure the integrity of the article.Do not modify (including this statement) without the consent of the author, and reserve the right of legal investigation.Do not use academic references without the consent of the author.Do not use for commercial publication, commercial printing or commercial reference without th
The official interpretation of the MDI (multiple document INTERFACE) in Windows programming is the so-called multi-document interface, which corresponds to a single document interface (SDI), which is Microsoft Corporation from Windows2. 0 The Microsoft Excel spreadsheet program was introduced, and the Excel spreadsheet user sometimes needed to manipulate multiple tables simultaneously, and MDI was a great c
C # learning notes-MDI form (Multi-Document Interface ),
1. Set the parent form:
To set a form as the parent form, set the IsMdiContainer attribute of the form to True.
2. Set the subform:
Set the MdiParent attribute of a form to determine that the form is a subform of the form.
Syntax:
1: public Form MdiParent{get;set;}
3. Arrange the MDI subforms:
Syntax:
1: public void LayoutMdi(MdiLayout value)
Value:
Shortcomings, please correct me!What is MDI: I mean, I don't know.MDI (Multiple document Interface) is the so-called multi-document interface, which corresponds to the single Document Interface (SDI), which was introduced by Microsoft from Microsoft Excel spreadsheet program under Windows 2.0, An Excel spreadsheet user sometimes needs to manipulate multiple tables at the same time, and MDI is a great conven
Recently contacted DevExpress 13.1 This skin component, feel quite easy to use and began to build a small application of the main framework.Looking for a long time is not found the corresponding article to explain this piece. Turned over their main web site to ask, as well as the API to explore ... Do not understand English very difficult ah ~ ~ ~The first option is to still load the submodule with MDI child form modeFirst step: Create a primary ribbo
One, MDI form container:1. Function:It allows the other form to open inside it and cannot exceed its scopeSet the properties of a form: IsMdiContainer to true-window style2. Questions:(1) How do I open the other form inside it?The name of the form object. MdiParent = this;(2) How do I maximize properties when I open a form?Set maximized properties with code before instantiating a Form object, showNote: The WindowState property of the form must be the
How to Implement the conversion between SDI and MDI?
If you want to write a compiled SDI application
Program To convert to MDI, you must first create a class that inherits cmdichidwnd. Assume It is cchldfrm and make the following changes in cwinapp.
Initinstance ()
{
....
// Instead of adding csingledoctemplate
// Add cmultidoctemplate.
Pdoctemplate = new cmultidoctemplate (
Idr_mainframe,
Runtime_class (
MDI is a virtual printed document, if we want to use Office 2007 to open the MDI file can not be directly implemented, we need to add the 2007 version of Microsoft Office program to open the MDI file program, the following small series to give you a detailed method of operation.
Because version 2003 has a Microsoft Office Document Imaging in the start-All Progra
/// ///function: Set the main form size to the display workspace size in the MDI program/// /// main form Instance Public Static voidsetmainformsize (Form mainform) {mainform.location=NewPoint (0,0); Mainform.width=Screen.PrimaryScreen.WorkingArea.Width; Mainform.height=Screen.PrimaryScreen.WorkingArea.Height; }***************************************************** /// ///function: Child form size in
C # It is very easy to merge the child form menu in the MDI form menu. You only need to set the attribute AllowMerge = True to OK;But to merge the toolbar, it is a little complicated.
C # merge child forms in the MDI form Toolbar
First, the MDI form code:
// FrmMain is the MDI formPrivate void frmMain_Load (object send
I. Design of MDI Form1.MDI IntroductionMDI (Multiple document Interface) is the so-called multi-document interface , which corresponds to a single document interface (SDI), which is Microsoft Corporation from Microsoft Windows 2.0 when an Excel spreadsheet program is introduced, an Excel spreadsheet user sometimes needs to manipulate multiple tables at the same time, and
If multiple child forms are opened at the same time in an MDI form, if the order of the Child forms is not adjusted, the interface will be very messy and difficult to browse. How can this problem be solved? You can use the layoutmdi method with mdilayout enumeration to arrange child forms in the parent form of the Multi-document interface.Syntax:Public void layoutmdi (mdilayout value)Value: One of the mdilayout enumerated values, used to define the la
Brother some days ago to do projects, the first use of vb.net, met a lot of problems, I believe that many beginners will encounter these problems, in order to learn the convenience of beginners, younger brother summed up some small experience for everyone to refer to the discussion.
First: How to control the properties of a parent form in an MDI child form and so on
Features: For example, when you open a subform, you set a menu item or button in the p
You need to add the following third line to the InitInstance () in the app class: ccommandlineinfo cmdinfo; ParseCommandLine (cmdinfo); // prevent automatic creation of blank subforms // dispatches the command specified on the command line. Returns FALSE if // using/RegServer,/register,/unregserver, or/unregister to start the application. if (! ProcessShellCommand (cmdinfo)) return FALSE;Reference: http://blog.csdn.net/missile1226/article/details/8375065Disallow MFC
The MDI child framework maximizes when it starts
Method One:
In the CChildFrame::P Recreatewindow (createstruct cs) function, add the
Cs.style |= ws_visible| Ws_maximize, you can achieve the
Method Two:
Add ActiveFrame message to CChildFrame class with ClassWizard
void cchildframe::activateframe (int ncmdshow)
{
Ncmdshow=sw_maximize;
Cmdichildwnd::activateframe (nCmdShow);
}
Method Three: Add the Oninitupdate member function in the View class Overload
I want to generate an MDI window interface, but found that using VC is cumbersome to add a lot of runtime_class, and can not implement the main window to add feature options. That is, generate a main Outlook window, and then add multiple document windows to the main window (like the Multi-text window in office). So, write this cmdichild class. The effect is shown in figure one.
To implement this class:
First step: Generate a single document program
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.