Solved

CEditView update?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

895 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

15 Experts available now in Live!

Get 1:1 Help Now