Thread: Reading Contents of Edit Control up to a Certain Character

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    54

    Reading Contents of Edit Control up to a Certain Character

    Once you find the window for the edit control you are looking for, how do you read the text in it character by character? I do not want to read it into a buffer since the text changes rapidly and I have to stream it all. With the buffer, I would have to wait until the total number of characters are found. This is what I have now:
    Code:
    SendMessage(hwnd, WM_GETTEXT, 80, ((LPARAM) message));

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    An EN_CHANGE notification is sent to the parent of the edit control each time a change is made which can be used to read input character by character.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 02-02-2009, 07:27 AM
  2. edit control - entering only numbers
    By Micko in forum Windows Programming
    Replies: 2
    Last Post: 08-20-2004, 11:31 AM
  3. UNICODE and GET_STATE
    By Registered in forum C++ Programming
    Replies: 1
    Last Post: 07-15-2002, 03:23 PM
  4. Controlling an edit control
    By master5001 in forum Windows Programming
    Replies: 2
    Last Post: 10-16-2001, 03:08 PM
  5. Rich edit control example Win API
    By Echidna in forum Windows Programming
    Replies: 1
    Last Post: 09-17-2001, 02:12 AM