Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CEditView update?

Posted on 1998-01-23
5
Medium Priority
?
264 Views
Last Modified: 2013-11-20
What´s the function i have to overwrite, to make an EditView update(I tried the OnDraw and it doesn't work´s)

Thank´s in advance.
Mário Guedes
0
Comment
Question by:mguedes
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:jtwine100697
ID: 1314639
  Please explain what you are trying to do...

   If you made a change, and you want the change to be visible, try CEditView::GetEditCtrl().Invalidate(), or CEditView::Invalidate().

-=- James.
0
 
LVL 4

Expert Comment

by:jtwine100697
ID: 1314640
  Please explain what you are trying to do...

   If you made a change, and you want the change to be visible, try CEditView::GetEditCtrl().Invalidate(), or CEditView::Invalidate().

-=- James.
0
 

Author Comment

by:mguedes
ID: 1314641
I have a tabview interface with one drawing tab and one debug(with CEditView) tab. When i switch from the debug to the drawing it´s work fine because i call "invalidate", but when i go in reverse(drawing -> debug) all the data that i have doesn´t appears in my windows(because the data was lost). Now i want know
how i put back the information( what´s the function i have to override - i tried OnUpdate, OnDraw and it doesn´t work´s).

thanx to try to help´s me James
0
 
LVL 4

Accepted Solution

by:
jtwine100697 earned 30 total points
ID: 1314642
Hmmm...  Not sure why the data was lost, but if you only have data in the edit control, and not in the Doc/View classes, you can simply CEditCtrl::GetWindowText() to store the data when the tab is switched from "Debug" and CEditCtrl::SetWindowText() to set it back again.

Is that what you are trying to do?

-=- James.

0
 

Author Comment

by:mguedes
ID: 1314643
I have find a solution, thanx for your help James

Mário Guedes
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question