Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

getting the caption from an edit box

Does anyone know how to get the text from within an edit box from an outside application??  I can get the handle to the window adn then get the handle to the edit box...but getting the text that is in there is another story.  Thanks.  Sorry this only for 50 points...its all i have.
0
meetze
Asked:
meetze
1 Solution
 
plarocheCommented:
Try using the WM_GETTEXT message:

CWnd* pWnd = your edit;
TCHAR buffer[200];

pWnd->SendMessage(WM_GETTEXT, (WPARAM)200, (LPARAM)buffer);
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now