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. Hiding a view

Hiding a view

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 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.
  • N Offline
    N Offline
    nobaq
    wrote on last edited by
    #1

    Hello, It sounds crazy but how can I disable and hide my current view in my SDI app (CHtmlView) (and afterwards display it again)? [1] I've tried SetVisible and EnableWindow but it does not work. Background: In a modal dialog I temporarily load a different page for printing. The user should not see that there is another page loading or printing. Regards, Niki [1] With hide/disable I mean e.g. that the current view is just white or even better: just frozen.

    C 1 Reply Last reply
    0
    • N nobaq

      Hello, It sounds crazy but how can I disable and hide my current view in my SDI app (CHtmlView) (and afterwards display it again)? [1] I've tried SetVisible and EnableWindow but it does not work. Background: In a modal dialog I temporarily load a different page for printing. The user should not see that there is another page loading or printing. Regards, Niki [1] With hide/disable I mean e.g. that the current view is just white or even better: just frozen.

      C Offline
      C Offline
      Code o mat
      wrote on last edited by
      #2

      ShowWindow[^](SW_HIDE) and ShowWindow(SW_SHOW) could do the trick

      > The problem with computers is that they do what you tell them to do and not what you want them to do. <

      N 1 Reply Last reply
      0
      • C Code o mat

        ShowWindow[^](SW_HIDE) and ShowWindow(SW_SHOW) could do the trick

        > The problem with computers is that they do what you tell them to do and not what you want them to do. <

        N Offline
        N Offline
        nobaq
        wrote on last edited by
        #3

        Thank you! This seems to do exactly what I was looking for! Regards, Niki

        C 1 Reply Last reply
        0
        • N nobaq

          Thank you! This seems to do exactly what I was looking for! Regards, Niki

          C Offline
          C Offline
          Code o mat
          wrote on last edited by
          #4

          Yourwelcome. :)

          > The problem with computers is that they do what you tell them to do and not what you want them to do. <

          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