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 hide window when the app starts ?

How to hide window when the app starts ?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
6 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.
  • C Offline
    C Offline
    capint
    wrote on last edited by
    #1

    I have an app with an icon on system tray. I want to hide the window (just let the icon appear). I tried to use dlg->ShowWindow(SW_HIDE)instead of DoModal() but when the icon appears, it's useless (when we move the mouse to it, it disappears). Someone plz give me a solution, thanks :rose:

    H M 2 Replies Last reply
    0
    • C capint

      I have an app with an icon on system tray. I want to hide the window (just let the icon appear). I tried to use dlg->ShowWindow(SW_HIDE)instead of DoModal() but when the icon appears, it's useless (when we move the mouse to it, it disappears). Someone plz give me a solution, thanks :rose:

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Can you set visible style on the property of window?

      C 1 Reply Last reply
      0
      • H Hamid Taebi

        Can you set visible style on the property of window?

        C Offline
        C Offline
        capint
        wrote on last edited by
        #3

        Do you mean setting the visible property to false ? I did so but there's no effect :(

        H 1 Reply Last reply
        0
        • C capint

          I have an app with an icon on system tray. I want to hide the window (just let the icon appear). I tried to use dlg->ShowWindow(SW_HIDE)instead of DoModal() but when the icon appears, it's useless (when we move the mouse to it, it disappears). Someone plz give me a solution, thanks :rose:

          M Offline
          M Offline
          Michael Schubert
          wrote on last edited by
          #4

          Not sure but this might be what you're looking for: http://www.voidnish.com/Articles/ShowArticle.aspx?code=dlgboxtricks[^]

          C 1 Reply Last reply
          0
          • M Michael Schubert

            Not sure but this might be what you're looking for: http://www.voidnish.com/Articles/ShowArticle.aspx?code=dlgboxtricks[^]

            C Offline
            C Offline
            capint
            wrote on last edited by
            #5

            Thanks so much. It's really helpful ...

            1 Reply Last reply
            0
            • C capint

              Do you mean setting the visible property to false ? I did so but there's no effect :(

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              No set to ture. :)

              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