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. Help with device context please =>

Help with device context please =>

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
7 Posts 4 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.
  • A Offline
    A Offline
    adara
    wrote on last edited by
    #1

    i'm using GetWindowDC(NULL) to retrieve the device context for the entire screen, is there any way to retrieve the device context for the entire screen without my dialog in it ? thanx:rose:

    L 1 Reply Last reply
    0
    • A adara

      i'm using GetWindowDC(NULL) to retrieve the device context for the entire screen, is there any way to retrieve the device context for the entire screen without my dialog in it ? thanx:rose:

      L Offline
      L Offline
      l a u r e n
      wrote on last edited by
      #2

      if your doing it from within your app use the ShowWindow() first to hide it ... then do the grabscreen thing ... then reshow ur app if ur doing it manually of course just minimize ur app before u grab the screen ;)


      "... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
      sonork: 100.18128   8028finder.com

      A 1 Reply Last reply
      0
      • L l a u r e n

        if your doing it from within your app use the ShowWindow() first to hide it ... then do the grabscreen thing ... then reshow ur app if ur doing it manually of course just minimize ur app before u grab the screen ;)


        "... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
        sonork: 100.18128   8028finder.com

        A Offline
        A Offline
        adara
        wrote on last edited by
        #3

        Thanx,but my app must be visible all the time.. any other ideas??

        J L 2 Replies Last reply
        0
        • A adara

          Thanx,but my app must be visible all the time.. any other ideas??

          J Offline
          J Offline
          Jay Beckert
          wrote on last edited by
          #4

          I don't think there is an actually a way to do that. Once your app is drawn to the screen your app will be in that DC. Other than what Lauren suggested is what I would of done but I don't know exactly what you want. If you find a way I like to know how you did it.:)

          1 Reply Last reply
          0
          • A adara

            Thanx,but my app must be visible all the time.. any other ideas??

            L Offline
            L Offline
            l a u r e n
            wrote on last edited by
            #5

            if your app must be visible at all times how can u grab the screen without it? sounds a bit impossible to me philisophically speaking ... however ... all i can think of is then that you grab the screen then get ur apps window co-ordinates and fill the screen area in with a best guess of what it contains (wallpaper, color, etc) otherwise im at a loss sorry


            "... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
            sonork: 100.18128   8028finder.com

            A 1 Reply Last reply
            0
            • L l a u r e n

              if your app must be visible at all times how can u grab the screen without it? sounds a bit impossible to me philisophically speaking ... however ... all i can think of is then that you grab the screen then get ur apps window co-ordinates and fill the screen area in with a best guess of what it contains (wallpaper, color, etc) otherwise im at a loss sorry


              "... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
              sonork: 100.18128   8028finder.com

              A Offline
              A Offline
              adara
              wrote on last edited by
              #6

              Thanx ,i will try to find another way to do it:rose:

              L 1 Reply Last reply
              0
              • A adara

                Thanx ,i will try to find another way to do it:rose:

                L Offline
                L Offline
                loket
                wrote on last edited by
                #7

                Exactly what are you trying to do? ...just curious. /M


                - Don't sweat the petty things, and don't pet the sweaty things.

                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