CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    Potsdam
    Posts
    110

    Form View has been modified

    Hello. Is there a way to indicate that a form view has been modified, lets say when you change data in an edit control? Also, is there a way to check all objects (dialogs, windows, etc.) to see if they have been modified? Thank you.


  2. #2
    Join Date
    May 1999
    Location
    Texas, USA
    Posts
    568

    Re: Form View has been modified

    In your CFormView class, add a message handler for the CEdit member, EN_CHANGE. This will be called everytime the edit field is being changed. Inside this function do the following.
    GetDocument()->SetModified();


    Then when you are leaving the CFormView class, then just call
    GetDocument()->IsModified()


    This will let you know if anything has been modified.

    Hope that helps,

    Wayne



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