X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bcb251a0c146e7c39c7000c7dc145b3f2bd6afcf..22423eac8bcfcd3d357465e2cbeba08f1c431181:/include/wx/msw/textctrl.h diff --git a/include/wx/msw/textctrl.h b/include/wx/msw/textctrl.h index db47342cb0..5d7815f099 100644 --- a/include/wx/msw/textctrl.h +++ b/include/wx/msw/textctrl.h @@ -131,7 +131,7 @@ public: virtual void SetInsertionPoint(long pos); virtual void SetInsertionPointEnd(); virtual long GetInsertionPoint() const; - virtual long GetLastPosition() const; + virtual wxTextPos GetLastPosition() const; virtual void SetSelection(long from, long to); virtual void SetEditable(bool editable); @@ -148,8 +148,7 @@ public: virtual void Command(wxCommandEvent& event); virtual bool MSWCommand(WXUINT param, WXWORD id); - virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor, - WXUINT message, WXWPARAM wParam, WXLPARAM lParam); + virtual WXHBRUSH MSWControlColor(WXHDC hDC, WXHWND hWnd); #if wxUSE_RICHEDIT virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result); @@ -189,7 +188,7 @@ public: // Show a context menu for Rich Edit controls (the standard // EDIT control has one already) - void OnRightClick(wxMouseEvent& event); + void OnContextMenu(wxContextMenuEvent& event); // be sure the caret remains invisible if the user // called HideNativeCaret() before @@ -248,9 +247,9 @@ protected: int m_verRichEdit; #endif // wxUSE_RICHEDIT - // if true, SendUpdateEvent() will eat the next event (see comments in the - // code as to why this is needed) - bool m_suppressNextUpdate; + // number of EN_UPDATE events sent by Windows when we change the controls + // text ourselves: we want this to be exactly 1 + int m_updatesCount; virtual wxVisualAttributes GetDefaultAttributes() const; @@ -261,12 +260,6 @@ private: wxMenu* m_privateContextMenu; bool m_isNativeCaretShown; - - // this is an optimization: instead of checking all the time whether we - // need to move the caret to the end of text (before appending to the - // control), we remember whether it is already at the end of text in this - // variable - bool m_isCaretAtEnd; }; #endif