Solved

CEditView update?

Posted on 1998-01-23
5
249 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
Comment Utility
  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
Comment Utility
  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
Comment Utility
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
Comment Utility
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
Comment Utility
I have find a solution, thanx for your help James

Mário Guedes
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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…
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 demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now