Getting Any Text in Mouse positon From Any Window

This is a discussion on Getting Any Text in Mouse positon From Any Window within the Windows Programming forums, part of the Platform Specific Boards category; hi, i want to get the part of a text where i click (where the mouse positon is) as it's ...

  1. #1
    Kenan
    Guest

    Question Getting Any Text in Mouse positon From Any Window

    hi,
    i want to get the part of a text where i click (where the mouse
    positon is) as it's done in glossary program "babylon". this text can
    be any part of a name of an icon,a window title,edit,static, etc. n

    thanks for now.

  2. #2
    Registered User
    Join Date
    Feb 2002
    Posts
    329
    Sounds tricky.
    I guess you could use GetCursorPos(), and then use FindWindowEx() or similar, and find all the active windowhandles.
    You then could check if the mousecoords are within any of the windows.
    Just my suggestion, I've never tried anything like that..

  3. #3
    Rog
    Rog is offline
    Registered User
    Join Date
    Jan 2003
    Posts
    78
    This sounds like it would fall under the subject of Hit-Testing. I think if you do some searches using that term you will find what you are looking for.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  2. How to use FTP?
    By maxorator in forum C++ Programming
    Replies: 8
    Last Post: 11-04-2005, 03:17 PM
  3. My Window Class
    By Epo in forum Game Programming
    Replies: 2
    Last Post: 07-10-2005, 03:33 PM
  4. Pong is completed!!!
    By Shamino in forum Game Programming
    Replies: 11
    Last Post: 05-26-2005, 11:50 AM
  5. retreiving console window text
    By mayhem in forum Windows Programming
    Replies: 2
    Last Post: 09-10-2003, 10:40 PM

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