|
-
June 10th, 2009, 12:43 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|