Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CEditView update?

Posted on 1998-01-23
5
Medium Priority
?
258 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

719 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