Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone,


In my Dialog based application I have placed a Edit box with Read Only and Multiline properties. I am displaying 1300 or more values in the edit box. But on scrolling down the values get over written. In short the window is not getting updated or Repaint. Please help me out. I am almost at the end of my application and I can't go for any other method.

In my application, m_EditBox is the variable for Edit Box and m_szBuffer is the CString variable for the same.

On Button event I am using the following lines to display the values in edit box.
C++
{
m_szBuffer = szTemp;
UpdateData(FALSE);
}
Posted
Updated 27-Nov-13 20:20pm
v2

1 solution

If m_szBuffer is the variable for EditBox (a strange name) so you need to write something like this:

C++
CEdit *m_szBuffer;

 //m_szBuffer = reinterpret_cast<CEdit *>(GetDlgItem(IDC_DISPLAY));
 m_szBuffer->SetWindowText(szTemp);
 
Share this answer
 
Comments
Fresher16 28-Nov-13 2:19am    
Still the same problem. There's no problem in displaying the data but when we scroll down, the values are not getting updated / repainted. They are getting overwritten.
What should I do?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900