Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Very very beginner question on MFC ! Pls help!

Status
Not open for further replies.

Dhafir

Programmer
Sep 22, 2002
28
0
0
NZ
Hi all,
It is very very simple question about MFC>
I have to write a quick application in MFC. It is very simple, read input from the user (from edit boxes), process them, then display them on an edit box. I used app wizard to to create the application skeleton and laid out my component visually and gave each edit box control a unique Id.
My question is : How can I access the contents of an edit box control ( read and write ). I know there must be soem call in which I pass the control ID to get or put data.

I know it is a very dumb question, but I still need help!

Thanks
 
Use the Class Wizard to assign member variables to the controls then use CDialog::UpdateData() to synchronize to/from code members to window controls.

Hope this helps
-pete
 
Thanks palbano, I got it sorted out in DoDataExchange(...)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top