Implement EmptyUndoBuffer() for wxTextCtrl in wxMSW too

The relevant code was already present in MSWCreateText(), so just
extract it into its own function.
This commit is contained in:
Vadim Zeitlin
2021-08-20 16:35:51 +01:00
parent 3c9bb69d6e
commit 1799922d0e
3 changed files with 42 additions and 24 deletions

View File

@@ -64,6 +64,9 @@ public:
virtual void Redo() wxOVERRIDE;
virtual bool CanRedo() const wxOVERRIDE;
#if wxUSE_RICHEDIT
virtual void EmptyUndoBuffer() wxOVERRIDE;
#endif // wxUSE_RICHEDIT
virtual void SetInsertionPointEnd() wxOVERRIDE;
virtual long GetInsertionPoint() const wxOVERRIDE;