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. A pixel from another program...

A pixel from another program...

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
12 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.
  • V Vladimir Georgiev

    Hello, I am writing an application that will provide the feature of "taking" a pixel color from any other window, currently displayed. When the user right clicks with the mouse on the desktop, taskbar, or the system tray for example, the color (RGB) of the pixel he has clicked on must be obtained. Do you have any idea how this functionality could be implemented? The real question is how could I obtain another window's DC (from which I could get the pixel), and the mouse coordinates when the user presses the right button on another window... Thank you in advance. "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell

    M Offline
    M Offline
    Maximilien
    wrote on last edited by
    #2

    I' sure there's someone here on CP that already did that, check the different sections. check this one Colour preview and picker applet


    Maximilien Lincourt Your Head A Splode - Strong Bad

    1 Reply Last reply
    0
    • V Vladimir Georgiev

      Hello, I am writing an application that will provide the feature of "taking" a pixel color from any other window, currently displayed. When the user right clicks with the mouse on the desktop, taskbar, or the system tray for example, the color (RGB) of the pixel he has clicked on must be obtained. Do you have any idea how this functionality could be implemented? The real question is how could I obtain another window's DC (from which I could get the pixel), and the mouse coordinates when the user presses the right button on another window... Thank you in advance. "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #3

      :) regards

      V 1 Reply Last reply
      0
      • L Lost User

        :) regards

        V Offline
        V Offline
        Vladimir Georgiev
        wrote on last edited by
        #4

        ? "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell

        D M 2 Replies Last reply
        0
        • V Vladimir Georgiev

          ? "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell

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

          Vladimir Georgiev wrote: ? What is your question? The provided link looks just like what you are after.


          "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

          V 1 Reply Last reply
          0
          • D David Crow

            Vladimir Georgiev wrote: ? What is your question? The provided link looks just like what you are after.


            "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

            V Offline
            V Offline
            Vladimir Georgiev
            wrote on last edited by
            #6

            My "?" was for the Greeeg's smiley. I did not understand what he meant about that. But anyway, I agree that the link provided gives me the right clues for solving my problem, for which I thank Maximilien :) I am sorry for the misunderstanding... "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell

            D 1 Reply Last reply
            0
            • V Vladimir Georgiev

              My "?" was for the Greeeg's smiley. I did not understand what he meant about that. But anyway, I agree that the link provided gives me the right clues for solving my problem, for which I thank Maximilien :) I am sorry for the misunderstanding... "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell

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

              Vladimir Georgiev wrote: My "?" was for the Greeeg's smiley. I did not understand what he meant about that. It was just Greeeg's way of providing a hyperlink. He used an image tag instead of an anchor tag.


              "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

              M 1 Reply Last reply
              0
              • V Vladimir Georgiev

                ? "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell

                M Offline
                M Offline
                Marcello
                wrote on last edited by
                #8

                Click on the smiling icon ! http://www.codeproject.com/gdi/screencolorpicker.asp The Code Project - Screen Color Picker - Fonts & GDI

                1 Reply Last reply
                0
                • D David Crow

                  Vladimir Georgiev wrote: My "?" was for the Greeeg's smiley. I did not understand what he meant about that. It was just Greeeg's way of providing a hyperlink. He used an image tag instead of an anchor tag.


                  "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

                  M Offline
                  M Offline
                  Marcello
                  wrote on last edited by
                  #9

                  How do I add an achor tag ? How do I write a [code] section, which appears in light yellow if I remember well Is there a link that explains all of these things and others ? Thanks !

                  D 1 Reply Last reply
                  0
                  • M Marcello

                    How do I add an achor tag ? How do I write a [code] section, which appears in light yellow if I remember well Is there a link that explains all of these things and others ? Thanks !

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

                    When replying to a post, check out the formatting (and smiley) options below the text box.


                    "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

                    M 1 Reply Last reply
                    0
                    • D David Crow

                      When replying to a post, check out the formatting (and smiley) options below the text box.


                      "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

                      M Offline
                      M Offline
                      Marcello
                      wrote on last edited by
                      #11

                      Thank you, I am realizing now that with Mozilla browser only the smileys appears, not the others.

                      D 1 Reply Last reply
                      0
                      • M Marcello

                        Thank you, I am realizing now that with Mozilla browser only the smileys appears, not the others.

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

                        No matter. You can insert <A>, < PRE>, and <CODE> tags manually.


                        "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

                        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