CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    How do I use CEdit

    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.


  2. #2
    Join Date
    Sep 1999
    Location
    Madrid - SPAIN
    Posts
    33

    Re: How do I use CEdit

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured