0
votes

Now I have developed an application that illustrates two windows on main frame of MFC. I have developed with SDI in MFC, but did not use MDI as I need to hide menu bar. When the program starts I have only one window. How can I add one more window by code? and how can I update each screen with different data?

1
There's nothing stopping you from hiding the menu bar in an MDI application.Cody Gray
@CodyGray What do you mean? How can I add new window only use code behind.mrdlf

1 Answers

0
votes

You can use 2 views inside a single window. The 2 views may be separated using CSplitterWnd. You can have a look here about what different kinds of views you can have.

Updated:

As per your comment below, since you want separate windows with different data, you must use MDI. This is what it is designed for.