What is the maximum size of string you can place in a Edit Box on a dialog. Note I am using CString for holding the text.
I am using a multiline Edit Box to display the progress of a test activity. The display used to be a DOS Window.
I use the following code to update the output:-
m_Output.SetFocus(); // Set the focus to main window of the GUI
m_strNewText.Format ("%s", m_pMsg->OutputText); // Copy from memory into m_strNewText variable
m_strOutput+= m_strNewText + crlf; // Total display string;
SetDlgItemText(IDC_OUTPUT1, m_strOutput); // Display the new text appended onto old text
UpdateData(); // Refresh the control
I was thinking of checking the size and restarting when getting near the limit, but what is the limit?
I am using a multiline Edit Box to display the progress of a test activity. The display used to be a DOS Window.
I use the following code to update the output:-
m_Output.SetFocus(); // Set the focus to main window of the GUI
m_strNewText.Format ("%s", m_pMsg->OutputText); // Copy from memory into m_strNewText variable
m_strOutput+= m_strNewText + crlf; // Total display string;
SetDlgItemText(IDC_OUTPUT1, m_strOutput); // Display the new text appended onto old text
UpdateData(); // Refresh the control
I was thinking of checking the size and restarting when getting near the limit, but what is the limit?