Merge branch 'msw-richedit-paste'

Fix pasting long strings into wxTextCtrl in wxMSW.
This commit is contained in:
Vadim Zeitlin
2019-10-10 13:56:00 +02:00
4 changed files with 188 additions and 18 deletions

View File

@@ -60,6 +60,8 @@ public:
virtual void GetSelection(long *from, long *to) const wxOVERRIDE;
virtual void Paste() wxOVERRIDE;
virtual void Redo() wxOVERRIDE;
virtual bool CanRedo() const wxOVERRIDE;
@@ -292,6 +294,11 @@ private:
// false if we hit the limit set by SetMaxLength() and so didn't change it.
bool AdjustSpaceLimit();
// Called before pasting to ensure that the limit is at big enough to allow
// pasting the entire text on the clipboard.
void AdjustMaxLengthBeforePaste();
wxMenu* m_privateContextMenu;
bool m_isNativeCaretShown;