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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Edit Boxes...

Status
Not open for further replies.

Neoyanderson

Programmer
Apr 18, 2004
16
US
hello can anyone tell me how to add a default text input into an edit box. to be more specific i want to have 'type input here' in the edit box when it first appears. of course this will be altered by the user
 
It would help to know if you are using MFC or not...

I'll assume you are, since most people that post here do. Use the class wizard to set a CString variable for the edit box. Then go to the dialog class's constructor and you will see something like m_strText = _T("");. Change this to whatever you want it to be.
 
You could also just set the text in the control using the SetWindowText() function or method. It's the same in both MFC and plain Win32.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top