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

Add string

Status
Not open for further replies.

omeryesil

Programmer
Jun 26, 2000
27
CA
Hi,<br>how can i add/insert/delete a string in CEditView class. i checked msdn but i could not found. <br>
 
Here you go to add or insert it easy. To delete you must know how to find the text you want to delete unless you are letting the user select it for you.<br><br>From msdn.microsoft.com<br><br>CEditView::GetEditCtrl <br>CEdit& GetEditCtrl( ) const;<br><br>Return Value<br><br>A reference to a CEdit object.<br><br>Remarks<br><br>Call GetEditCtrl to get a reference to the edit control used by the edit view. This control is of type CEdit, so you can manipulate the Windows edit control directly using the CEdit member functions.<br><br>CEdit::SetSel <br>void SetSel( DWORD dwSelection, BOOL bNoScroll = FALSE );<br><br>void SetSel( int nStartChar, int nEndChar, BOOL bNoScroll = FALSE );<br><br>CEdit::ReplaceSel <br>void ReplaceSel( LPCTSTR lpszNewText, BOOL bCanUndo = FALSE );<br><br>Hope this helps<br>-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top