Re: Hiding Messagebox in CEditView
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Wed, 30 Jul 2008 10:16:38 -0400
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,Joseph M. Newcomer [MVP]
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 ????
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- Hiding Messagebox in CEditView
- From: njoycoding@xxxxxxxxx
- Hiding Messagebox in CEditView
- Prev by Date: Re: icon background is not transparent when aero is enabled in vista
- Next by Date: Re: Scrolling large images
- Previous by thread: RE: Hiding Messagebox in CEditView
- Next by thread: Re: Hiding Messagebox in CEditView
- Index(es):