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. View handling or hiding.

View handling or hiding.

Scheduled Pinned Locked Moved C / C++ / MFC
question
2 Posts 2 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.
  • I Offline
    I Offline
    i_am_aamir
    wrote on last edited by
    #1

    I have a view based SDI application. It monitors other process. If no problems are detected I would like it to be invisible to the user. I do not want it to show on the task bar, nor should someone be able to Alt-Tab to it. How do I hide the frame and the view?

    P 1 Reply Last reply
    0
    • I i_am_aamir

      I have a view based SDI application. It monitors other process. If no problems are detected I would like it to be invisible to the user. I do not want it to show on the task bar, nor should someone be able to Alt-Tab to it. How do I hide the frame and the view?

      P Offline
      P Offline
      Paul Selormey
      wrote on last edited by
      #2

      Towards the end of your application InitInstance method, the following lines exit m_pMainWnd->ShowWindow(SW_SHOW); m_pMainWnd->UpdateWindow(); Changing the show (SW_SHOW) to hide (SW_HIDE) or something similar will prevent the window from showing. It will actually initial show and then hide. If you wish to prevent this too, you may have to take care of the actual creation functions in the mainframe class.

      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