Re: Hiding Messagebox in CEditView



Because it is a CEditView, it has a document, and when you modify the view (by setting the
text) the CEditView will mark the document as modified. Since it is read-only, what you
will want to do in your OnClose handler is call SetModify/SetModified (I never remember
the name without looking it up) to mark the document as "unmodified".
joe

On Wed, 30 Jul 2008 06:42:17 -0700 (PDT), "njoycoding@xxxxxxxxx" <njoycoding@xxxxxxxxx>
wrote:

Hi All,

In have a view obtained from CEditView with readonly property set .
Every time I close the view I get an message saying "Save changes to
CView1" with Yes , No and Cancel buttons
But I dont want this messagebox to popup .....
How do I hide this messagebox ????
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.