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

Threaded View

  1. #4
    Join Date
    Oct 2007
    Posts
    96

    Re: CEditView or CRichEditView Class

    I did find a solution via google.com from someone else who was having the exact same issue. However it still does not work for me. In that I get prompted to save the document.

    Here is the code I found here and the results of the implementation

    http://www.eggheadcafe.com/software/...x-in-cedi.aspx

    Code:
    void CMainFrame::OnClose() 
    {
        CEdit * editCtrl = (CEdit*)CWnd::FromHandle(m_hndLogView); 
        if(editCtrl->GetModify())                                // returns TRUE
            editCtrl->SetModify(FALSE);
    
        BOOL val = editCtrl->GetModify();                 // returns FALSE
        CFrameWnd::OnClose();}
    Last edited by justmehere; June 10th, 2009 at 12:50 PM.

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