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. push window to background

push window to background

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
7 Posts 5 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
    ROWALI
    wrote on last edited by
    #1

    We know how to take window to foreground (SetForegroundWindow()) But how can I push the window to background and let the window which is under our application's window cover our application window? Row

    V L N D 4 Replies Last reply
    0
    • R ROWALI

      We know how to take window to foreground (SetForegroundWindow()) But how can I push the window to background and let the window which is under our application's window cover our application window? Row

      V Offline
      V Offline
      Viorel
      wrote on last edited by
      #2

      If you known wich window is under your window, that call SetForegroundWindow for that window. Otherwise, may be minimizing your window with ShowWindow(SW_MINIMIZE) is satisfactory?

      1 Reply Last reply
      0
      • R ROWALI

        We know how to take window to foreground (SetForegroundWindow()) But how can I push the window to background and let the window which is under our application's window cover our application window? Row

        L Offline
        L Offline
        Laxman Auti
        wrote on last edited by
        #3

        ROWALI wrote:

        We know how to take window to foreground (SetForegroundWindow()) But how can I push the window to background and let the window which is under our application's window cover our application window?

        use SetWindowPos with wndTop for the background window. Knock out 't' from can't, You can if you think you can :cool:

        1 Reply Last reply
        0
        • R ROWALI

          We know how to take window to foreground (SetForegroundWindow()) But how can I push the window to background and let the window which is under our application's window cover our application window? Row

          N Offline
          N Offline
          Nader Elshehabi
          wrote on last edited by
          #4

          Hello An idea is to use EnumWindows() to enumerate all top level windows, then push them all forward.

          R 1 Reply Last reply
          0
          • N Nader Elshehabi

            Hello An idea is to use EnumWindows() to enumerate all top level windows, then push them all forward.

            R Offline
            R Offline
            ROWALI
            wrote on last edited by
            #5

            exactly. :) -- modified at 8:37 Monday 19th June, 2006 Sorry I checked .. No use :(

            1 Reply Last reply
            0
            • R ROWALI

              We know how to take window to foreground (SetForegroundWindow()) But how can I push the window to background and let the window which is under our application's window cover our application window? Row

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Why would you want to do this? If I am typing in some program and all of a sudden the windows started changing their z-order, that's not going to make me very happy.


              "The largest fire starts but with the smallest spark." - David Crow

              "Judge not by the eye but by the heart." - Native American Proverb

              R 1 Reply Last reply
              0
              • D David Crow

                Why would you want to do this? If I am typing in some program and all of a sudden the windows started changing their z-order, that's not going to make me very happy.


                "The largest fire starts but with the smallest spark." - David Crow

                "Judge not by the eye but by the heart." - Native American Proverb

                R Offline
                R Offline
                ROWALI
                wrote on last edited by
                #7

                Basically what I want is I am copying from background window to my application few text data. WHn I want to cut the data from background window I need to switch to it I want to do it with mouse, if mouse goes to title area immediatly my background application come forward. I will copy the etxt and paste to my application. problem is I can get the effect by ShowWindow(SW_MINIMIZE) but then i can see the window going to left bottom corner visibly. which is irritating on slow machines. -- modified at 8:49 Monday 19th June, 2006

                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