Set text of an edit control (newbie)

  • Thread starter Thread starter Tim Kelley
  • Start date Start date
T

Tim Kelley

How do I programmatically set the text of an edit control?


Thanks.
 
Tim Kelley said:
How do I programmatically set the text of an edit control?

What layer are you using for UI widgets? Native win32, MFC, .NET Forms,
....?
 
How do I programmatically set the text of an edit control?

SetWindowText.

Dave
 
Are you using DDX? Why don't you just use the class designer to map the
text to a CString variable?

Otherwise, CEdit has a SetWindowText member function as David has pointed
out.

Also, MFC questions do not belong in this newsgroup, which is for using C++
in .NET, mainly C++/CLI but interop questions would be more or less on topic
here as well. Try microsoft.public.vc.language in the future.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top