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!

MFC CEditView and SetWindowText() not working!

Status
Not open for further replies.

ashorton

Programmer
Mar 1, 2001
24
GB
I have added a CEditView to a splitter pane in my MDI application. In the OnInitialUpdate function I send some default text the the View using the SetWindowText() function. This works fine. However if I try to clear or change the text using SetWindowText later nothing happens. I have called InvalidateRect() hoping this will refresh the view. But it does not.

Has anyone come across this problem?

 

Hi

Here is the code I use to do it. It is called in one function of the CEditView-derived class:

GetEditCtrl().SetWindowText( "this is a test");

I never need to do anything else and it works

Thierry
Thierry.Marneffe@swing.be
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top