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. Web page memory

Web page memory

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

    hello, You know if it is posible to know where are stored in memory the pixels of a web page ? and if yes how ? thx in advance

    T R 2 Replies Last reply
    0
    • J jeremysay

      hello, You know if it is posible to know where are stored in memory the pixels of a web page ? and if yes how ? thx in advance

      T Offline
      T Offline
      tom76
      wrote on last edited by
      #2

      I think you'll need to be a bit clerer on this question... jeremysay wrote: hello, You know if it is posible to know where are stored in memory the pixels of a web page ? and if yes how ? thx in advance Obseve everything, remember more...

      J 1 Reply Last reply
      0
      • T tom76

        I think you'll need to be a bit clerer on this question... jeremysay wrote: hello, You know if it is posible to know where are stored in memory the pixels of a web page ? and if yes how ? thx in advance Obseve everything, remember more...

        J Offline
        J Offline
        jeremysay
        wrote on last edited by
        #3

        tom76 wrote: I think you'll need to be a bit clerer on this question... yes sorry :( In fact i'm working with CHtmlView, and i want to know if it is possible to get all pixels state of web page from memory (RAM), i don't want to use GetPixel or.... I hope you understand PS : excuse for bad english :((

        T 1 Reply Last reply
        0
        • J jeremysay

          tom76 wrote: I think you'll need to be a bit clerer on this question... yes sorry :( In fact i'm working with CHtmlView, and i want to know if it is possible to get all pixels state of web page from memory (RAM), i don't want to use GetPixel or.... I hope you understand PS : excuse for bad english :((

          T Offline
          T Offline
          tom76
          wrote on last edited by
          #4

          I assume you are trying to dynamically change the HTMLView window (the Internet Explorer activeX object you drop onto a dialog in Visual Studio's editor), am I right? Look at how you set the pixels (width and height) and maybe attach a global variable to it, and getting the address of the variable and use it that way... I don't really know, usually I stick to variables and don't bother getting it from RAM in the way I think you want. Obseve everything, remember more...

          1 Reply Last reply
          0
          • J jeremysay

            hello, You know if it is posible to know where are stored in memory the pixels of a web page ? and if yes how ? thx in advance

            R Offline
            R Offline
            Ryan Binns
            wrote on last edited by
            #5

            You probably can't. I assume the HTML view simply stores the HTML data which it renders as it needs to. It wouldn't store the individual pixel states. If you want to get an "image" in a device context, you can try getting the HTML view to print itself. Send it a WM_PRINTCLIENT message with the wParam holding the handle of the device context to print into. Using MFC:

            CWnd *pWndHTML; // A pointer to the HTML view window
            CDC dc; // A device context to draw into
            // Get the correct window handle and setup the device context here
            pwndHTML->SendMessage(WM_PRINTCLIENT, (WPARAM)dc.GetSafeHdc(), PRF_ERASEBKGND | PRF_CLIENT);
            // The device context should hold a copy of the contents of the view

            Keep in mind that this will only get the visible part of the view, not the whole document (unless it fits completely in the window). Hope this helps, Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
            Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

            J 1 Reply Last reply
            0
            • R Ryan Binns

              You probably can't. I assume the HTML view simply stores the HTML data which it renders as it needs to. It wouldn't store the individual pixel states. If you want to get an "image" in a device context, you can try getting the HTML view to print itself. Send it a WM_PRINTCLIENT message with the wParam holding the handle of the device context to print into. Using MFC:

              CWnd *pWndHTML; // A pointer to the HTML view window
              CDC dc; // A device context to draw into
              // Get the correct window handle and setup the device context here
              pwndHTML->SendMessage(WM_PRINTCLIENT, (WPARAM)dc.GetSafeHdc(), PRF_ERASEBKGND | PRF_CLIENT);
              // The device context should hold a copy of the contents of the view

              Keep in mind that this will only get the visible part of the view, not the whole document (unless it fits completely in the window). Hope this helps, Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
              Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

              J Offline
              J Offline
              jeremysay
              wrote on last edited by
              #6

              Thx for you answer ! I thought to this solution but i can't get all pixel state od the page only those there are display. So for me it is a problem

              R 1 Reply Last reply
              0
              • J jeremysay

                Thx for you answer ! I thought to this solution but i can't get all pixel state od the page only those there are display. So for me it is a problem

                R Offline
                R Offline
                Ryan Binns
                wrote on last edited by
                #7

                What do you need to get the pixel state for? There may be another way to solve your problem (without getting the pixel state). Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
                Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

                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