VC++ 2005 Express Edition:
I have a textBox with the properties:
this->m_TextBox_De sc->Multiline = true;
this->m_TextBox_De sc->WordWrap = true;
this->m_TextBox_De sc->ScrollBars = ScrollBars::Ver tical;
I read my database with a description for the user. I want to load each
line into a listView. With wordWrap and the Width of the textBox gives
me 4 lines, but when I use:
m_TextBox_Desc->Text = database[L"Descriptio n"]->ToString();
array<System::S tring^>^ tempArray = gcnew array<System::S tring^>(
m_TextBox_Desc->Lines->Length );
tempArray = this->m_TextBox_Scri pture->Lines;
I only get 1 line, How come? In MFC VC++ you can use functions
GetLineCount() and GetLine(n, (LPTSTR)pszText , sizeof(pszText) ). Where
are the line breaks in the textBox?
Thanks for your help!..