Prev: CMFCRibbon Menu Buttons
Next: Quries with _RecordsetPtr
From: Joseph M. Newcomer on 16 Oct 2008 14:22 I've heard reports about limits on single-line edit controls; I've never verified this, but your experience seems consistent with the reports I've heard. joe On Thu, 16 Oct 2008 08:10:11 -0700, stringarray <stringarray(a)discussions.microsoft.com> wrote: >No, it's not multiline, I would like to display everything in a single line. > >"Joseph M. Newcomer" wrote: > >> See below... >> On Wed, 15 Oct 2008 14:47:26 -0700 (PDT), "stringarray(a)gmail.com" <stringarray(a)gmail.com> >> wrote: >> >> > >> > >> >This is happening on Vista. I created a new dialog based MFC project >> >to test this. I added a CEdit control to my dialog. I called >> >SetLimitText to let my CEdit receive 100000 characters. I tried both: >> > >> >this->m_cedit1.SetLimitText(100000); >> >UpdateData(FALSE); >> **** >> What has UpdateData got to do with this? once you set the limit, the limit is set, and >> calling UpdateData is not goiing to change anything. >> >> You don't need to specify this-> >> **** >> > >> >and >> > >> >static_cast<CEdit*>(GetDlgItem(IDC_EDIT1))->LimitText(100000); >> **** >> This is a horror, and should NEVER be written! >> >> Is it a multiline CEdit? >> joe >> >> **** >> > >> >I placed these calls on InitDialog. >> > >> >after I paste 6000 characters into my CEdit, it becomes empty and >> >unresponsive. Any ideas as to what is causing this and workarounds to >> >be able to paste long strings of text in a CEdit or any other control? >> Joseph M. Newcomer [MVP] >> email: newcomer(a)flounder.com >> Web: http://www.flounder.com >> MVP Tips: http://www.flounder.com/mvp_tips.htm >> Joseph M. Newcomer [MVP] email: newcomer(a)flounder.com Web: http://www.flounder.com MVP Tips: http://www.flounder.com/mvp_tips.htm |