question about a window

This is a discussion on question about a window within the Windows Programming forums, part of the Platform Specific Boards category; hey, does anyone here know how i might be able to read the text inside the white box in the ...

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    3

    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.
    Attached Images Attached Images  

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,652
    reading editbox contents from a different program

    Read all of that come back with questions if need be.

    gg

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    3
    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.
    Last edited by Alsij; 08-12-2004 at 01:18 AM.

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,652
    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.

    gg

  5. #5
    Registered User
    Join Date
    Aug 2004
    Posts
    3
    ok, thanks for the advice

    i guess i'll have to learn to use spy++, seems like it must be very useful

  6. #6
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    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.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  2. creating a child window
    By rakan in forum Windows Programming
    Replies: 2
    Last Post: 01-23-2007, 02:22 PM
  3. dont want to use all params
    By stallion in forum Windows Programming
    Replies: 2
    Last Post: 02-18-2003, 07:10 AM
  4. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 09:01 PM
  5. Winamp Vis if anyone can help
    By Unregistered in forum Windows Programming
    Replies: 6
    Last Post: 01-26-2002, 11:43 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21