X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/26f60eb6a4944750bc45ace8873545a98b5b6f06..1d421f0c396c4b29cc2e7a867845284a4108d3c0:/include/wx/msw/textctrl.h diff --git a/include/wx/msw/textctrl.h b/include/wx/msw/textctrl.h index 3f09055cdf..4b2b906625 100644 --- a/include/wx/msw/textctrl.h +++ b/include/wx/msw/textctrl.h @@ -148,7 +148,7 @@ public: virtual void Command(wxCommandEvent& event); virtual bool MSWCommand(WXUINT param, WXWORD id); - virtual WXHBRUSH MSWControlColor(WXHDC hDC); + virtual WXHBRUSH MSWControlColor(WXHDC hDC, WXHWND hWnd); #if wxUSE_RICHEDIT virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result); @@ -201,6 +201,10 @@ protected: // intercept WM_GETDLGCODE virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); + // return true if this control has a user-set limit on amount of text (i.e. + // the limit is due to a previous call to SetMaxLength() and not built in) + bool HasSpaceLimit(unsigned int *len) const; + // call this to increase the size limit (will do nothing if the current // limit is big enough) //