Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Minimize Mainframe in SDI

Minimize Mainframe in SDI

Scheduled Pinned Locked Moved C / C++ / MFC
question
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kiranin
    wrote on last edited by
    #1

    i want to minimize the application Mainframe window, and want to show the other dialogs which are opened from the application? from following code it is minimizing everything AfxGetMainWnd()->ShowWindow(SW_MINIMIZE);

    A R 2 Replies Last reply
    0
    • K kiranin

      i want to minimize the application Mainframe window, and want to show the other dialogs which are opened from the application? from following code it is minimizing everything AfxGetMainWnd()->ShowWindow(SW_MINIMIZE);

      A Offline
      A Offline
      Amin Abdi
      wrote on last edited by
      #2

      you can hide and show it with

      SW_HIDE

      and

      SW_SHOW

      K 1 Reply Last reply
      0
      • A Amin Abdi

        you can hide and show it with

        SW_HIDE

        and

        SW_SHOW

        K Offline
        K Offline
        kiranin
        wrote on last edited by
        #3

        I tried, it is hiding everything Dialog is modeles dialog

        R 1 Reply Last reply
        0
        • K kiranin

          i want to minimize the application Mainframe window, and want to show the other dialogs which are opened from the application? from following code it is minimizing everything AfxGetMainWnd()->ShowWindow(SW_MINIMIZE);

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          Why do you have to minimize the mainframe window? If you want the newly opened dialog to have focus until it is dismissed, then just use a modal dialog. See CDialog::DoModal()[^]

          It is a crappy thing, but it's life -^ Carlo Pallini

          K 1 Reply Last reply
          0
          • K kiranin

            I tried, it is hiding everything Dialog is modeles dialog

            R Offline
            R Offline
            Rajesh R Subramanian
            wrote on last edited by
            #5

            You're attempting to make a modeless dialog behave like a modal dialog. Why not just use a modal dialog instead?!

            It is a crappy thing, but it's life -^ Carlo Pallini

            1 Reply Last reply
            0
            • R Rajesh R Subramanian

              Why do you have to minimize the mainframe window? If you want the newly opened dialog to have focus until it is dismissed, then just use a modal dialog. See CDialog::DoModal()[^]

              It is a crappy thing, but it's life -^ Carlo Pallini

              K Offline
              K Offline
              kiranin
              wrote on last edited by
              #6

              The dialog should be visible thru entire application and should not minimize at any time. Dialog should not be modal why because my control should not restrict to dialog. Dialog should be accessible and my mainframe views should be accessible, based on the control from the dialog mainframe views will replaced with the reqd content.

              A 1 Reply Last reply
              0
              • K kiranin

                The dialog should be visible thru entire application and should not minimize at any time. Dialog should not be modal why because my control should not restrict to dialog. Dialog should be accessible and my mainframe views should be accessible, based on the control from the dialog mainframe views will replaced with the reqd content.

                A Offline
                A Offline
                Amin Abdi
                wrote on last edited by
                #7

                do u want only minimize your document? user can restore it?

                K 1 Reply Last reply
                0
                • A Amin Abdi

                  do u want only minimize your document? user can restore it?

                  K Offline
                  K Offline
                  kiranin
                  wrote on last edited by
                  #8

                  sdi mainframe windows splitter into 2 rows and 2nd row into two columns, where views will replaced based on the selection of the controls in the dialog

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups