D
Developer
VC++ 2005 Express Edition:
I have a textBox with the properties:
this->m_TextBox_Desc->Multiline = true;
this->m_TextBox_Desc->WordWrap = true;
this->m_TextBox_Desc->ScrollBars = ScrollBars::Vertical;
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"Description"]->ToString();
array<System::String^>^ tempArray = gcnew array<System::String^>(
m_TextBox_Desc->Lines->Length );
tempArray = this->m_TextBox_Scripture->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!..
I have a textBox with the properties:
this->m_TextBox_Desc->Multiline = true;
this->m_TextBox_Desc->WordWrap = true;
this->m_TextBox_Desc->ScrollBars = ScrollBars::Vertical;
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"Description"]->ToString();
array<System::String^>^ tempArray = gcnew array<System::String^>(
m_TextBox_Desc->Lines->Length );
tempArray = this->m_TextBox_Scripture->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!..