Re: Getting text in a window

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jonathan Wood (jwood_at_softcircuits.com)
Date: 01/18/05


Date: Tue, 18 Jan 2005 13:09:57 -0700

If the window that contains the text is owner drawn, then there is no
definitive way to obtain the text. The program can store the text in any
format it likes, including making it up as it goes along. WM_GETTEXT works
through a well-defined interface to obtain the main text of a window. Text
that appears within the client area of a custom window have no obligation to
follow this or any other interface for obtaining this text.

-- 
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm
"Jeremy Chapman" <NoSpam@Please.com> wrote in message
news:OD$x4tY$EHA.1292@TK2MSFTNGP10.phx.gbl...
> I'm experimenting getting text in a window using various methods.
>
> I was able to send a WM_GetText message to one of the child notepad
windows
> and successfully, but the text I'm really trying to read from is a
terminal
> emulation application, which contains no child windows.   I can grab the
> main window handle but a WM_GetText only returns the title bar text.  Are
> there any other ways?
>
>


Relevant Pages

  • Re: Roguelike Interface
    ... I've made a screenshot of my roguelike for you, ... The interface is MDI. ... a set of child windows which are contained inside one parent window. ... The player can make any layout they like, ...
    (rec.games.roguelike.development)
  • Re: the new interface
    ... multi-documents-based applications in MacOS X (like QuickTime, AppleWorks, TextEdit, etc. which keep the multi-window interface). ... As such, it seems appropriate to me that all associated components should be contained in a single window, while each window represents a unique RB document. ... TextEdit, ... The important thing to realize is the difference between separating documents into different windows, and separating information into different windows. ...
    (comp.lang.basic.realbasic)
  • Re: List boxes in Microfocus Dialog System/Net Express?
    ... > are the row indexes of the drop-down and that's the value that's ... > The interface works quite well for choosing the status from the list ... > yet another window to the process (this window is for a small sub-set ... I fired up Word and, using the default settings, Times Roman 11.5pt, I typed ...
    (comp.lang.cobol)
  • Re: UI subsystem interface design
    ... The application constructs its UI by composing the primitive drawing objects and then giving those objects as data to the subsystem, which will be responsible for doing the drawing based upon the data it is given. ... Each window is a rectangle and contains coordinates for its position represented as floating-point numbers between 0 and 1. ... There has to be a mapping of the message data packets in the subsystem interface and you will need some way to ensure that mapping, but I don't see that being dedicated identity objects. ...
    (comp.object)
  • Adding a GUI to a Forth system
    ... recently been experimenting with developing an user interface for my ... taken is for Forth to send a single byte command out over stderr, ... byte command for text display is sent out on stderr, ... stdout to be received by VB and displayed in a window. ...
    (comp.lang.forth)