question about a window
hey, does anyone here know how i might be able to read the text inside the white box in the picture i attached? i'm making a poker statistics program and i need to somehow get access to that text.
i've discovered that the whole part of the window that's not the tabs on the right is actually just one window (meaning that WindowFromPoint() returns the same HWND address when i put the mouse over the white box, the pictures above it, and the text box at the top with the grey background).
anyone know what kind of window that might be, and how i could get access to the text in the white box? i know it's possible to read it, because a program i found called SnagIt can read the text, but i'm just not sure how to get any sort of a handle to the white box.
reading editbox contents from a different program
Read all of that come back with questions if need be.
hey, thanks for the response.
i read that thread already actually, and i've been able to read text from other programs like that just fine. my problem is that i don't know how to get a handle to the white box in my picture, because it's apparantly not a Windows window, just part of a window together with everything to the left of those tabs. so i can't send messages like EM_GETLINE or WM_GETTEXT to it (can't send any message to it, since it's not a window), but i figure there must be some way of accessing the text.
All you can do is use Spy++ or similiar application to see exactly what kind of window it is.
If it isn't a standard windows control then use Spy++ to see how it process's messages and perhaps you can use those messages to get at the text.
Other than that, you'll have to do screen captures and apply OCR the images.
ok, thanks for the advice
i guess i'll have to learn to use spy++, seems like it must be very useful
If it was my program.......
I would have done the drawing myself (else you would need a rich edit or a heavily subclassed listbox). Used a HDC and a frame control (so I would know where to draw).
As the text is 'draw' to a bitmap, the bmp to the screen by the OS, you wont see any messages containing the text.