Click here to Skip to main content
15,902,910 members
Everything / MDI

MDI

MDI

Great Reads

by Darryl Bryk
Code is described for drawing an image as a 3D surface plot using OpenGL
by Robert Gustafson
Simplifies working with ToolStrip-type menus and tool bars for MDI-parent and other forms; also works with ToolStrip-type context menus
by snavece
Updating CToolBar to MFC Feature Pack (2008)

Latest Articles

by Robert Gustafson
Simplifies working with ToolStrip-type menus and tool bars for MDI-parent and other forms; also works with ToolStrip-type context menus
by snavece
Updating CToolBar to MFC Feature Pack (2008)
by Darryl Bryk
Code is described for drawing an image as a 3D surface plot using OpenGL

All Articles

Sort by Updated

MDI 

6 Mar 2023 by Robert Gustafson
Simplifies working with ToolStrip-type menus and tool bars for MDI-parent and other forms; also works with ToolStrip-type context menus
3 Jul 2021 by robinhood1995
I have a MDI form which opens a docked child form (user dashboard) that is not closable by the users. The MDI can then open up either docked child forms within the MDI or non docked child forms. The problem I am running into is that if the user...
22 Jun 2021 by Kyudos
I have an MFC MDIFrame / View architecture. When the child frame/view is resized I want to resize some of the displayed controls. So, in my CMDIChildWnd, I handle OnExitSizeMove, because I don't want to recalculate on every OnSize message. This...
22 Jun 2021 by Kyudos
I found it! Had to monitor CChildFrame::OnSysCommand for SC_RESTORE and SC_MAXIMIZE
14 May 2021 by tracam
Hi, I have a main form in Visual Studio C# which has the IsMdiContainer set to True. I tried to open a child form using frm_edit_s = new frm_edit_sensor(); frm_edit_s.FLG_parent_form = this; ...
14 May 2021 by RickZeeland
See the note here: Form.MdiParent Property (System.Windows.Forms) | Microsoft Docs[^] Quote: If there are two MenuStrip controls on an MDI child form, setting IsMdiContainer to true for the parent form merges the contents of only one of the...
14 Apr 2021 by softools
I'm moving an old 1990's MDI program to the next century. I've spent many hours searching and experimenting to achieve one feature I'd like to have. I know MDI with Tabs, specifically Tab Groups, is the way to go - just like Visual Studio. The...
22 Nov 2020 by LebrunThierry
C++, MFC, MDI application ... How to change the MDI main widows bar color? What I have tried: I tryed with mainframe ... or aCMFCVisualManagerWindows7 derived class BOOL CCiVisualStyle::DrawTextOnGlass(CDC* pDC, CString strText, CRect...
16 Dec 2019 by try.test.abc
Hello All, Please help.. In my project i have datagridview and i have created a cellValidate event of it and in it i have put the code of e.cancel = true for certain condition like formatting and decimal validation... now it gives error when i press MDI form's save button to save grid...
16 Dec 2019 by OriginalGriff
That is by design: it's is exactly what the Validation event is there for. If the data in the cell isn't valid, it shouldn't be saved - and that is exactly what the system is trying to do: prevent invalid data getting into your backing storage.
5 Oct 2019 by phil.o
Some more links: QAT Persistence[^] Persisting Ribbon State[^]
5 Oct 2019 by Member 11380615
Hello, I have c++ mfc mdi project. It uses ribbon. The application when run displays the QAT. We can manually add elements to the QAT when the application is run. When we send the application to other users they have to manually add elements to the QAT. Is there a way I can add some elements to...
4 Oct 2019 by Richard MacCutchan
Quick Access Toolbar - Google Search[^]
14 Jul 2019 by Richard MacCutchan
Take a look at Using Windows - Windows applications | Microsoft Docs[^].
14 Jul 2019 by benjweston
I have an Win32 C++ MDI form with a toolbar at the top, a statusbar at the bottom and an edit control sitting on top of the statusbar, with the rest of the client area clear for child windows. Here's the code to create the edit control: HFONT hfDefault; HWND hEdit; TCHAR lpszSometext[] =...
13 Jul 2019 by benjweston
In a win32 mdi desktop app, how would you place an edit control in the mdi client area (just like the Output window in Visual Studio when it's docked at the bottom of the main window)? I'm doing an OpenGL graphics app and to complement using mouse input and getting coordinates from the cursor...
13 Jul 2019 by Richard MacCutchan
Why not just create it as another child (Edit) window and let the MDI window control its positioning? See How to: Create MDI Child Forms | Microsoft Docs[^] for some sample code.
27 Mar 2019 by Member 13999828
I found the answer at: Hello those Who have read or are interested in a solution to this dilemma: I found it at: https://stackoverflow.com/questions/13255935/how-do-you-make-your-mdi-mfc-app-show-one-instance-in-the-taskbar/55376904#55376904 And it works. best wishes all.
27 Mar 2019 by Member 13999828
+I have created an MDI app based on the MFC DocView architecture in the latest version of Visual-Studio, which is working well. However, when the application is running, and its minimised icon is displayed on the desktop TaskBar, all the open documents are displayed along side one-another. Is...
23 Jan 2019 by Michael Haephrati
If you go over all Windows styles[^], and Extended Windows Styles[^], you should find the answer. Also you can remove the close button using the following code (assuming you get a handle to hwnd): HMENU hMenu = GetSystemMenu( hWnd, 0 ); int nNbItems = GetMenuItemCount(hMenu); ...
23 Jan 2019 by Chopin2001
I don't know how to remove menubar from dialog that inherit CDockablePane, create by CreateEx function in mainframe of MDI(MFC). My Dialog's problem is have a menubar that have a 'X' icon for close. I want to remove that. Thanks. What I have tried: m_wndOptionBar.CreateEx(NULL, NULL, this,...
4 Sep 2018 by saide_a
hi all I have a MFC MDI c++ program, And I want to know is it possible to decide about close one of tabs (sure to close MsgBox) ? something similar to oncancel function in dialogue base program. and also is there a event to close the entire program on closing one of tabs? thanks for your...
4 Sep 2018 by KarstenK
You can use the WM_CLOSE message. Use the PostMessage API for it and do all needed operations like saving data and settings before. You can also use PostQuitMessage.
15 Aug 2018 by Amit Sharma (Patna)
dear all i have a mdiform with a panel on the screen. Panel has a form (for dashboard purpose). it is displaying perfect but as i started opening other forms using mdi menu, child form hides. Please give me some suggestions to resolve the problem i am facing... Thanks and regards Amit Kumar ...
25 Jul 2018 by saide_a
Recenlty I was working on MDI MFC standard style program, that I was able to reset pane string with setpanetext function, but now in MFC office style no SetPaneText exits, what can I use in place of that ? What I have tried: m_wndStatusBar.SetPaneText(0, _T("Ready"), 1);
16 Jul 2018 by Jochen Arndt
Who will read (and scroll through) 280,000 items? A solution would be using a virtual list control that handles only the items actually visible. See Virtual List Controls | Microsoft Docs[^]. For a non virtual list control you can (and should always even with smaller lists) disable the screen...
16 Jul 2018 by saide_a
I have a List control which about 280000 items should be added to that and then display. it takes about 4 minutes for me and my UI goes disable during the time. how can I reduce the Delay time? What I have tried: pTable = new CListCtrl; CString strtemp; for (unsigned int i = 1; i
16 Jul 2018 by Ajcek84
Have you considered paging or infinite scrolling? Items may be created/retrieved in a different thread but updating a control always blocks UI thread unless the control supports some kind of virtualization. The best approach is add items by parts (for example 200 items at a time) but you should...
16 Jun 2018 by Chopin2001
I have a Windows graphic program on MDI, MFC and Document has a 'wxr' object. The WXR have a CtypedPtrList OBList. OBList* m_pList; And CBackground has a CString members. CString m_projectPathName; CString m_projectName; The program have a Error when close the...
25 Apr 2018 by Jochen Arndt
That is because CFrameWnd based classes route those message to the active view and CMDIFrameWnd traps the WS_VSCROLL and WS_HSCROLL and styles: TN021: Command and Message Routing[^]: The CFrameWnd class provides management of the active view. The following messages are routed through the active...
25 Apr 2018 by Member 11380615
I have a c++ MFC MDI based project using visual studio 2013 community. Mainframe class is derived as class CMainFrame : public CMDIFrameWndEx In mainframe class in pre-create, the scroll bar is set as below. cs.style |= WS_VSCROLL | WS_HSCROLL; An OnVScroll call back function has been added to...
8 Mar 2018 by Maciej Los
Follow the instruction: How to: Create MDI Child Forms | Microsoft Docs[^]
8 Mar 2018 by Member 13687101
I made 3 forms in VB C#. After That I made MDI Container. and put My Login form as a child. So, How can i put the rest of forms in my Container? What I have tried: I've tried by following some Youtube Videos. but didn't get it. as I'm new to this field.
6 Feb 2018 by Jayanta Modak
Sir Please help me about MenuStrip Control used. I create a project there one parents form and two child form MenuStripControl-1 is on parents form (main_form) Menu Item name a) Trans. b)Report c) Setting and MenuStripControl-2 is on child form (purchase_Entry_Form) Menu Item name a) File....
6 Feb 2018 by Maciej Los
I'd strongly recommend to read article provided by Richard Deeming[^]: Walkthrough: Creating an MDI Form with Menu Merging and ToolStrip Controls | Microsoft Docs[^] Then, check another resources: How to: Hide ToolStripMenuItems | Microsoft Docs[^] How to: Disable ToolStripMenuItems | Microsoft...
5 Feb 2018 by gautam solanki
Hi I am developing one sample application by using WPF MDI. I used User Control as child form. It works fine but I am getting child forms titlebar and its border so it occupies space in MDIContainer. I want to remove that space. So anyone can help me to remove that space? Please see image :...
5 Feb 2018 by Pete O'Hanlon
From what I can tell, WPF.MDI is a lookless control. This means that you can skin it pretty much anyway that you want. If I were you, I'd take a copy of one of the existing themes[^] and play around with that to get the effect I wanted.
5 Feb 2018 by Graeme_Grant
Check out: MahApps.Metro Documentation[^] and GitHub - ButchersBoy/Dragablz: Dragable and tearable tab control for WPF[^] for a more modern MDI-like interface like Google Chrome as an alternative...
1 May 2017 by Member 11380615
Dear All, I have a MFC MDI project where in on start a maximised MDI child window is created. Later the user can create more MDI children. It is observed that when more children (12 of them) are created by OnFileNew() the existing maximized MDI child is restored and we see the restored mdi...
1 May 2017 by KarstenK
You must carefully implement the OnNewFile command handler. Renumbering or renaming the IDs is a common trap for messing up the message handling. Check that you create a new child window object and not only re-run the commands with the actual object.
4 Mar 2017 by Dana Bell
I'm trying to access the variables in a child form. I am transitioning from a multi-form WinForm program to a MDI with a ribbon. A lot of the code in the child forms is the same and I would like to code as much is the parent form. I can access and modify controls in the child, but can't figure...
4 Mar 2017 by Dana Bell
While I did not find a way to access variables in a child form directly, I did figure out a way to execute code in the child form from the ribbon. 1. Create a label on the child form2. Make it public (or protected)3. Add a TextChanged event for the label4. Find and change the...
20 Feb 2017 by Ravi Bhavnani
I think you're approaching this problem the wrong way.If you want to re-use code that populates a list control from a collection or data source, abstract that functionality into a method in a new helper class (e.g. ListViewHelper) like so:public static PopulateListView (ListView...
20 Feb 2017 by Graeme_Grant
Google Search is your friend... A quick search highlights many possible results that could help you. Have you tried doing any research?
3 Sep 2016 by BillWoodruff
If at all possible, I suggest you do not use the MDI WinForm architecture for your application; it's outmoded; it's visually unappealing; and, there are better ways to construct a UI that has contained elements (use UserControls, or Panels, or use a TabControl).A WinForm can never be both an...
2 Sep 2016 by MayankJani
Dear Friends,I am learning C# windows application. I am working on an MDI form and facing a problem that how to keep a sub-form of a child form within the MDI form. Let me describe the problem...1.I have an MDI form named 'First Form'.2.The MDI form contains menubar named 'Open Second...
1 Sep 2016 by Maciej Los
I'd say: this is a really bad idea to use MDI. Check this: WindowsApplication with MDI[^]
3 Jul 2016 by Member 11380615
I am not able to draw on the non client area of the MDI child window.Please post any code snippet that may work.Regards,Rakesh
24 Mar 2016 by Simon Langdon
Can anyone provide insight into why the IE Control in our application randomly, infrequently locks up. Because we don't have access to our customer's computers, especially not in a debuggable state, this one's proving really hard to pinpoint. This is an MFC, MDI application where several...
18 Feb 2016 by Davester28
There must be an easier way to do this...' MDI Parent code calling save routine on child form Private Sub SaveToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripButton.Click If TypeOf (MDICurrentForm) Is...
18 Feb 2016 by Richard Deeming
Use an Interface[^].Walkthrough: Creating and Implementing Interfaces (Visual Basic)[^]Public Interface ISaveableForm Sub SaveNow()End Interface...Private Sub SaveToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
17 Feb 2016 by Jochen Arndt
It seems you already found the asserting line and it tells you what has happened (the messages should have been also printed to the Debug Output window):# ifdef _DEBUG if (m_nMapMode == MM_NONE) { TRACE(traceAppMsg, 0, "Error: must call SetScrollSizes() or...
17 Feb 2016 by Member 11380615
Dear All,I am working on a project which is a mixture of dialog and MDI. The project started as a tabbed dialog project. Later MDI was added to it. On clicking one of the tabs the MDI is invoked. Without clicking the a particular tab it remains only a dialog based project.The project works...
3 Nov 2015 by CPallini
You don't need hint and trick at all, just a plain transfer of values from the edit controls to struct's member. You may use GetWindowText[^] if your member varaibles are CEdit pointers or directly copy the strings if your member varaiables are CStrings.Please note C++ struct are basically...
3 Nov 2015 by KarstenK
You have a big task, and need it to split in little tasks. My first advice, is to write some helper functions for filling the struct. Likevoid setAnrede( adressen*data, const char* anrede ) { strncpy( data->anrede, anrede, 5 - 1 );//use maximal allowed space minus 1 (for the delimeter)}...
3 Nov 2015 by Member 12041961
In my project i need to put the inserted data from an edit control in to a double liked list and then print all entries in a List Control.My teacher told me to handle the data in a struct (so i'm not allowed to do this in a class). I put the struct in the ...Doc.h file. The struct looks like...
26 Oct 2015 by CPallini
Get the CEdit text (you may either use the GetWindowText[^] method or, if appropriate, the DDX mechanism[^]) and copy it in the right adressen field.Of course, you have to first allocate memory for the adressen structure.As a side note, you are using C++ just like C. Why don't you take...
26 Oct 2015 by KarstenK
It is business as usual: you must do your house-keeping.You must allocate you address struct in memoryadressen * addr = new adressen;//.. fill with data// add to listinsert( node, addr );and delete it when your done.The inserting means that you "hang" the new between two...
26 Oct 2015 by Member 12041961
I need to insert some data from an edit control in a double linked list.How can i make this?My struct looks like this:typedef struct adr{ char anrede [5]; char vorname [51]; char nachname [51]; char plz [8]; char ort [60]; char strasse [51]; char land...
19 Oct 2015 by OriginalGriff
Have a look at this: Reading and Writing CSV Files in MFC[^]
19 Oct 2015 by George Jonsson
As you are using MFC, you can use CStringT::Tokenize[^] to split every line you read in separate words using the comma (,).Then you can place each word in the array using a loop.
19 Oct 2015 by Member 12041961
Data from .txt file write in array.I need to read a .txt file in to an array.exaple of one line in the .txt file:lastname, prename, town, and so on.i need to insert every word in another place in the array.How can i make this?Thanks a lot
31 Jul 2015 by Chandler Gao
What I can find online is the solution to print the active form, and here is the link:https://social.msdn.microsoft.com/Forums/windows/en-US/b1d9c023-8032-48f8-8092-dbc976607081/printing-active-mdi-child-c?forum=winforms[^]
31 Jul 2015 by Chandler Gao
Hi all,I encounter one problem on printing MDI child form. I have two different child forms, say f2 and f3 with parent f1. I have a PictureBox in f2, with my image to be printed and one RichTextBox in f3 with text to be printed. I want to print the two child forms separately or sequentially,...
21 Jun 2015 by Dave Kreskowiak
One, from hat you've shown, you shouldn't be using MDI at all.Second, if you have just ONE child form maximized in MDI, ALL child forms are maximized. This will resize your forms to fill the MDI client area. You cannot turn that behavior off. Like I said, nothing you're shown justifies using...
21 Jun 2015 by SrgjanX
Why for example, when I load a child form in my MDI container, the form is auto resized?It really need to be perfect looking and thats why i asked here, maybe someone had this problem before and knows the solution, this is how i see the child form in my visual...
13 Jun 2015 by Dave Kreskowiak
First, get rid of the MDI crap. It's an outdated concept that newb's just abuse to death.MDI stands for "Multiple Document Interface". It was designed for something like, for example, a multi-document Notepad where your child windows are all the same type and do the same thing, like a text...
12 Jun 2015 by Sergey Alexandrovich Kryukov
In addition to Solution 1:Here is the idea: who needs MDI, ever? Why torturing yourself and scaring off your users?Do yourself a great favor: do not use MDI at all. You can do much easier to implement design without it, with much better quality. MDI is highly discouraged even by Microsoft,...
12 Jun 2015 by Member 11660950
I am new to coding so try and be nice :)I have 3 forms, MDI form | Report Viewer Form | Filter FormThe MDI form opens the report form with a report of items pulled from a data table. I added an option for the user to filter the the report by various selections in the filter form. I...
23 May 2015 by Dave Kreskowiak
What you're describing tells me you should NOT be using MDI at all.MDI stands for "Multiple DOCUMENT interface". This means that you're opening multiple documents for editing in multiple copies of the same editor window. Kind of like opening multiple Notepad windows all in the same...
22 May 2015 by xuyunhai
there are four forms in application.one is main form,main form contains three mdi child forms.but i need use splitcontainer component to split child forms,after use split compenent,the mdi child form can't active,why appear this problem? how could i solve this problem.the demo image show...
22 May 2015 by bojammis
I have worked with client's applications that have MDI forms and their application cannot be modified otherwise, so support for the MDI pattern must be maintained. So I hope this helps.I would look into all the form’s members that deal with MDI forms. Two that are useful...
21 May 2015 by Asgard25
We have an application that uses a parent form as a mdi container and all other forms as child forms.On The parent form we have a control that has our 9 menu options on it, so that it doesn't have to be on each child form, but gets hooked up. So it's basically a global menu, but it causes a...
19 Feb 2015 by Sergey Alexandrovich Kryukov
Unfortunately, with System.Windows.Forms all that semi-transparent control stuff is just not serious. Forget it and consider moving to WPF. In WPF the situation is just the opposite. Anything at all can be semi-transparent.And don't use MDI. This is a separate story. Just don't.—SA
19 Feb 2015 by oronsultan
hey guys,i have an mdi form with background image set to some image. also, i have a panel and in that panel a few buttons. the panel set like this in the form_Load: Panel1.Parent = Me SetStyle(ControlStyles.SupportsTransparentBackColor, True) Panel1.BackColor =...
10 Feb 2015 by Goutam K. Jha
Hello Developers I'm developing MDI application in C# Windows form and i want to add new child window with dockable auto-hide property.So please help me out with sample example.
10 Feb 2015 by Sergey Alexandrovich Kryukov
Here is the idea: who needs MDI, ever? Why torturing yourself and scaring off your users?Do yourself a great favor: do not use MDI at all. You can do much easier to implement design without it, with much better quality. MDI is highly discouraged even by Microsoft, in fact, Microsoft dropped it...
10 Feb 2015 by OriginalGriff
Don't. Pass the info to the main form and let it do the work.Transferring information between two forms, Part 2: Child to Parent[^]
10 Feb 2015 by Member 4276496
I have made a paint program. The main form is Form1. A Child Form, called FormCanvas, has a pictureBox with a Bitmap Image on which I do all the drawing. From the main Form1 the user can call up several Dialogs to change the Images brightness, contrast, etc. Right now these Dialogs are set up...
24 Dec 2014 by CHill60
You could call the Application.DoEvents[^] method immediately prior to re-enabling the control. It should consume the waiting messages - i.e. they will fire but be ignored because the control is disabled. Please take note of the warnings and suggestions on that link.You could also consider...
24 Dec 2014 by Dev O'Connor
Afternoon All,I am using a left hand ribbon control i made to load up MDI Child Forms, the problem i have is that some of them have a significant amount of controls on them so takes a few seconds upon activation to relase the thread.My concern here is that if i multiple click the ribbon...
30 Oct 2014 by OriginalGriff
From that little, we can;t really answer your problem.But there are a couple of things you can check.First, make sure that the MdiForm instance has the IsMDIContainer property set to true.Then, check exactly where you are executing the code you show above: if the MdiForm instance has not...
30 Oct 2014 by PrasadKumar
Hello,I have inherited Form1 to Form2. I want to show Form2 as MDI child. But, while showing it throws "Error creating window handle.".Form1: Form{}Form2: Form1{}MdiForm: Form{ Form2 objForm = new Form2(); objForm.MdiParent = this; objForm.WindowState...
9 Oct 2014 by Sergey Alexandrovich Kryukov
I guess this is about understanding or "transparency". In raw effect, nothing is transparent: you just have different colors for different pixels, and the pixel is always 100% opaque.The effect of transparency comes up (rather as a metaphor), when you move some object over non-uniform...
9 Oct 2014 by oronsultan
o.k guys, the problem today goes like this:I have an MDI form which contains all the other forms obviously.on the main menu of my program (on the MDI form), i want to lay 4 pictureBox's. Now, the BackgroundImage of the mdi is NOT set to none and i am loading my own picture and stretch it....
19 Jun 2014 by Sergey Alexandrovich Kryukov
Basically, MDI is not designed to work with child controls.Here is the idea: who needs MDI, ever? Why torturing yourself and scaring off your users?Do yourself a great favor: do not use MDI at all. You can do much easier to implement design without it, with much better quality. MDI is...
19 Jun 2014 by lmilano
I have an mdi form with a panel anchored across the top. I want to load a child form in the remaining client area below the panel. When I use DockStyle.Fill, the child form fills the whole mdi client area and the top of the child form is hidden beneath the panel. I am using C#.Thank You.
18 Jun 2014 by Sergey Alexandrovich Kryukov
Here is the idea: who needs MDI, ever? Why torturing yourself and scaring off your users?Do yourself a great favor: do not use MDI at all. You can do much easier to implement design without it, with much better quality. MDI is highly discouraged even by Microsoft, in fact, Microsoft dropped it...
18 Jun 2014 by Member 9363513
Hi, just would like to ask if someone encountered the same problem with mine. I have created a vb.net application using 5 forms which form1 is the parent form and the other 4 is the child. I already included all the codes necessary to handle the child forms and it is doing fine but when i...
6 Jun 2014 by Sergey Alexandrovich Kryukov
Here is the idea: who needs MDI, ever? Why torturing yourself and scaring off your users?Do yourself a great favor: do not use MDI at all. You can do much easier to implement design without it, with much better quality. MDI is highly discouraged even by Microsoft, in fact, Microsoft dropped it...
6 Jun 2014 by ilostmyid2
hiIn an MDI program written in C++, I've this problem. When a new document is creating, it's view is shown repeatedly with different sized until it gets its final size. I put TRACE in OnSize of the corresponding child frame and got the following...
4 Jun 2014 by CHill60
Firstly I would avoid the use of Sheridan components - I'm not convinced they work under Windows 7. Most people used PictureBoxes to contain buttons on MDI forms. Note I say "used" as this language is no longer supported and most developers are migrating programs to .NET (where they are...
1 Jun 2014 by Ardi Durres
Hello everybodyI'm having some trouble in coding with the mdi form and a child form.loading mdi formSSTransition1.Visible = FalsefrmChngPass.ShowfrmChngPass.Top = 0frmChngPass.Left = 0Unloading the form Change PasswordUnload MeMDIForm1.ShowSSTransition1.Visible =...
19 May 2014 by the vacuum
I'm developing an image viewer MFC MDI (with one CView and CDocument)application for displaying a number of images files(stored in PC) in single application window for comparison . The number(upto 4) of images to be showed and its order will change dynamically with user preference. So I created...
6 May 2014 by leon de boer
It actually doesn't matter how you do the physicals on screen to do it you have to have the data stored and accessed by a Handle of some form.The handle could be a file handle (temp files), a global memory handle (all the data in memory) or a pointer to storage class object like a stream or...
6 May 2014 by the vacuum
I have developed an MFC MDI application for image viewing with one view and document class.I need to display upto four image files in the same application window. Also the user can have provision to dynamically select number of images files displaying( ie sometimes user will need to display;...
30 Apr 2014 by the vacuum
I have developed an MFC MDI application targeted for a dual monitor application scenario. Two monitors are connected to my PC through a graphics card and are set in extended mode. Therefore my desktop is occupied in entire area of two monitors. But I opening the application its only displaying...
28 Apr 2014 by the vacuum
I have developed an MDI MFC image viewer application for simultaneously viewing and comparing more than one images. In my application I need to implement dual monitor support which can view the displaying images in two monitors connected to the system and viewer should have provision to arrange...
19 Apr 2014 by Sergey Alexandrovich Kryukov
Here is the idea: who needs MDI, ever? Why torturing yourself and scaring off your users?Do yourself a great favor: do not use MDI at all. You can do much easier to implement design without it, with much better quality. MDI is highly discouraged even by Microsoft, in fact, Microsoft dropped it...
19 Apr 2014 by Muhamad Faizan Khan
I am using the following code but the form is not displayed CardType objCard = new CardType(); objCard.MdiParent = this; objCard.Show();when using the following code snippet it worksCardType objCard = new CardType();objCard.Show();why does...