Solved

IDC_EDIT Question

Posted on 2002-03-20
4
1,048 Views
Last Modified: 2013-11-20
Hi, I'm using Visual C++ 6.0 how would i get the text of a textbox named "IDC_EDIT1" and display it in a AfxMessageBox?

Thanks
0
Comment
Question by:will29131
4 Comments
 
LVL 4

Accepted Solution

by:
inpras earned 20 total points
Comment Utility
char valOfEdit[100];
GetDlgItemText( IDC_EDIT1, LPTSTR(valOfEdit), 100 );
AfxMessageBox(valOfEdit);
Hope this helps
inpras
0
 

Expert Comment

by:l_angelo
Comment Utility
you could also do a message mapping under class wizard.

Map the edit control to a member variable.

Ex. IDC_EDIT1 -> m_strEdit1

Mapped as a CString.

In the place u need to show on the message box,

you do

UpdateData(FALSE);
AfxMessageBox(m_strEdit1);



0
 
LVL 11

Expert Comment

by:griessh
Comment Utility
Dear will29131

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "inpras"

comment(s) as an answer.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 6

Expert Comment

by:Mindphaser
Comment Utility
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

763 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

10 Experts available now in Live!

Get 1:1 Help Now