How do I set up the MFC SDI Tab view? RRS feed

  • Question

  • It succeeded in creating MFC application projects with SDI (CFormVirew -- Basic Class) and creating multi-view windows such as MDI.

    But what I want to do is not the format in which a new window is created, but the way it opens in tab format. Is there no way?

    I must do so.
    Wednesday, August 14, 2019 5:02 AM

All replies

  • Hello,

    a SDI is a single document application. You can only have one child window.

    To have multiple child windows, you must create an MDI application. In the VS creation wizard of the project you can define the tabbed Format: On the second page of the wizard, select type Multiple documents and select the tabbed document checkbox.

    Regards, Guido

    Wednesday, August 14, 2019 7:23 AM
  • In addition to what has already been said, note that MDI is designed for multiple documents. If you are trying to use MDI to just get multiple windows then you will encounter problems.

    Sam Hobbs

    Saturday, August 17, 2019 7:00 PM