Solved

getting the caption from an edit box

Posted on 1999-01-19
1
171 Views
Last Modified: 2013-11-20
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
Comment
Question by:meetze
1 Comment
 
LVL 3

Accepted Solution

by:
plaroche earned 50 total points
ID: 1327985
Try using the WM_GETTEXT message:

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

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

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now