|
-
August 29th, 2007, 10:16 AM
#1
How to get hdc and pixel from window with sendmessage?
Hello, I want to get some pixels of a window that doesn't belong to my application, I mean that I have a window of a program and from my own application I want to get pixels of that window.
Well, so I need the hdc and perhaps using that hdc I could get the pixels I want. But I think that perhaps windows doesn't allow you using functions like getDC(hwnd) or getPixel(hdc, x, y) because that window and my application are part of different applications, does it?
So probaly I'll have to use sendmessage winapi function... I'm a bit lost.
There is an application that gives you lots of information about windows only pointing the mouse over the window. It gives hwnd, hdc, name of the class, text... This application is WinID, it is free if you don't use it with commercial purposes. Well if WinID can do it there is at leas one solution.
Well I use VB.NEt but the WinApi works the same so probably I can translate the calls to VB.NET. Someone knows something about it?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|