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. How to launch 'minimised'?

How to launch 'minimised'?

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
5 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.
  • R Offline
    R Offline
    Robert Palma Jr
    wrote on last edited by
    #1

    I need to launch a Vis Studio 6 C++ application that is initially minimised. This is a Dialog-Based app. How to do this? Most of the time this app will run and exit in a few seconds, but I want user to be able to maximise it if runs longer and it is desired to watch app progress. Much thanks in advance. Robert :)

    M S 2 Replies Last reply
    0
    • R Robert Palma Jr

      I need to launch a Vis Studio 6 C++ application that is initially minimised. This is a Dialog-Based app. How to do this? Most of the time this app will run and exit in a few seconds, but I want user to be able to maximise it if runs longer and it is desired to watch app progress. Much thanks in advance. Robert :)

      M Offline
      M Offline
      Matt Newman
      wrote on last edited by
      #2

      Your easiest option would be to progrmatically minimize it in OnInitDialog otherwise you will have to manually (text) edit your .rc file. I believe that is where it is stored. Unfortunately I have not used VC6 in quite awhile and I am currently working console based apps. Alternatively you could create an SDI app with CFormView and remove the tool bars etc. Matt

      R 1 Reply Last reply
      0
      • R Robert Palma Jr

        I need to launch a Vis Studio 6 C++ application that is initially minimised. This is a Dialog-Based app. How to do this? Most of the time this app will run and exit in a few seconds, but I want user to be able to maximise it if runs longer and it is desired to watch app progress. Much thanks in advance. Robert :)

        S Offline
        S Offline
        sps itsec46
        wrote on last edited by
        #3

        The easiest thing you can do is putting the following call at the end of your OnInitDialog(): BOOL CSampleDlg::OnInitDialog() { ... // Open the dialog minimized ShowWindow( SW_MINIMIZE ); return TRUE; } That should do it... :-D Hope it will help you! Mykel

        R 1 Reply Last reply
        0
        • S sps itsec46

          The easiest thing you can do is putting the following call at the end of your OnInitDialog(): BOOL CSampleDlg::OnInitDialog() { ... // Open the dialog minimized ShowWindow( SW_MINIMIZE ); return TRUE; } That should do it... :-D Hope it will help you! Mykel

          R Offline
          R Offline
          Robert Palma Jr
          wrote on last edited by
          #4

          Thanks Mykel. I have it up and running! Robert :)

          1 Reply Last reply
          0
          • M Matt Newman

            Your easiest option would be to progrmatically minimize it in OnInitDialog otherwise you will have to manually (text) edit your .rc file. I believe that is where it is stored. Unfortunately I have not used VC6 in quite awhile and I am currently working console based apps. Alternatively you could create an SDI app with CFormView and remove the tool bars etc. Matt

            R Offline
            R Offline
            Robert Palma Jr
            wrote on last edited by
            #5

            Thanks Matt! Robert :)

            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