Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stop Flicker during the loading

Status
Not open for further replies.

Huskey

Vendor
Aug 23, 2002
53
0
0
GB
Hi,

I got a problem. When I tried to read a database which contains a huge list of columns, the CListBox flickers during loading. How can I eliminate this effect?

for (int h = 0; h < columnnames.size(); h++)
{
if ((colNames == &quot;Integer&quot;) || (colNames ==&quot;String&quot;))
{ myColumns.Format(_T(&quot;%s\t%s&quot;), columnnames[h].GetBuffer(), colNames.GetBuffer()); }

m_ctrlCheckListBox.AddString( myColumns );
m_ctrlCheckListBox.SetCurSel(0);
m_ctrlCheckListBox.SetCheck(h,1);
}

thanks!
 
Try so:
for (int h = 0; h < columnnames.size(); h++)
{
if ((colNames == &quot;Integer&quot;) || (colNames ==&quot;String&quot;))
{ myColumns.Format(_T(&quot;%s\t%s&quot;), columnnames[h].GetBuffer(), colNames.GetBuffer()); }

m_ctrlCheckListBox.AddString( myColumns );
}
m_ctrlCheckListBox.SetCurSel(0);
m_ctrlCheckListBox.SetCheck(h,1);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top