Click to See Complete Forum and Search --> : How do I use CEdit


October 24th, 1999, 10:58 PM
This is a very simple question. But, I have a program with 3 views. One of the views is a edit window. How abouts can I update/change information in that view?

ie) Click on a list, and have the edit window display some text?

.. I have a feeling the answer is very obvious. But it is going over my head at the moment *shrugs*

any help would be great.

F. Gonzalez
October 25th, 1999, 02:38 AM
Hello,

Take a look at the function UpdateAllViews and the associated:
void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);

You can pass to your CEditView class the hint of what kind of change has ocurred in the list and the thing that has changed. The document will pass the change to all the views associated to it.

Hope this helps a little,
Paco