Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CMDIChildWndEx::IsReadOnly

Specifies whether the document that is displayed in the child window is read-only.

virtual BOOL IsReadOnly();

TRUE if the document is read-only; otherwise FALSE.

This function is used to prevent saving of read-only documents.

The following example demonstrates overriding the IsReadOnly method. This code snippet comes from the VisualStudioDemo Sample: MFC Visual Studio Application.

BOOL CChildFrame::IsReadOnly()
{
	return DYNAMIC_DOWNCAST(CStartView, GetActiveView()) != NULL;
}

Header: afxMDIChildWndEx.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.