Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
void EmptyUndoBuffer( );
Remarks
Call this function to reset (clear) the undo flag of this rich edit control. The control will now be unable to undo the last editing operation. The undo flag is set whenever an operation within the rich edit control can be undone.
The undo flag is automatically cleared whenever you call the CWnd member function SetWindowText.
For more information, see in the Win32 documentation.
Example
// The pointer to my rich edit control.
extern CRichEditCtrl* pmyRichEditCtrl;
// Clear the undo buffer.
if (pmyRichEditCtrl->CanUndo())
{
pmyRichEditCtrl->EmptyUndoBuffer();
ASSERT(!pmyRichEditCtrl->CanUndo());
}
CRichEditCtrl Overview | Class Members | Hierarchy Chart
See Also CRichEditCtrl::CanUndo¸ CRichEditCtrl::Undo, CWnd::SetWindowText