Solved

CEditView update?

Posted on 1998-01-23
5
252 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 10 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 94
withoutTen challenge 14 132
canBalance challenge 34 98
unix example issues 18 99
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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…
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.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

837 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