Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Specifies whether the document that is displayed in the child window is read-only.
virtual BOOL IsReadOnly();
Return Value
TRUE if the document is read-only; otherwise FALSE.
Remarks
This function is used to prevent saving of read-only documents.
Example
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;
}
Requirements
Header: afxMDIChildWndEx.h