Click here to Skip to main content
15,901,284 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to remove all source code symbol names from Release build Pin
ovz10-Sep-07 8:57
ovz10-Sep-07 8:57 
GeneralRe: How to remove all source code symbol names from Release build Pin
carrivick12-Sep-07 21:56
carrivick12-Sep-07 21:56 
QuestionHow can i send some event of update the Environment variables ? Pin
Yanshof10-Sep-07 5:41
Yanshof10-Sep-07 5:41 
QuestionRe: How can i send some event of update the Environment variables ? Pin
David Crow10-Sep-07 5:52
David Crow10-Sep-07 5:52 
AnswerRe: How can i send some event of update the Environment variables ? Pin
Yanshof10-Sep-07 10:13
Yanshof10-Sep-07 10:13 
QuestionRe: How can i send some event of update the Environment variables ? Pin
David Crow10-Sep-07 10:25
David Crow10-Sep-07 10:25 
QuestionAdd data to List control Pin
Max++10-Sep-07 5:19
Max++10-Sep-07 5:19 
AnswerRe: Add data to List control Pin
David Crow10-Sep-07 5:30
David Crow10-Sep-07 5:30 
This does not solve your "hang up" problem, but depending on how the control is sorting the items, there is the potential for the SetItem() calls to not match the InsertItem() call. Try this instead:

void CGraphFrom::AddDataList(CListCtrl *m_list, int row,
                             CString col0, CString col1, CString col2, 
                             CString col3, CString col4, CString col5)
{
    int nItem = m_list->InsertItem(row, col0);
 
    m_list->SetItemText(nItem, 1, col1);
    m_list->SetItemText(nItem, 2, col2);
    m_list->SetItemText(nItem, 3, col3);
    m_list->SetItemText(nItem, 4, col4);
    m_list->SetItemText(nItem, 5, col5);
}
Adding 1,000 items is trivial, but if it is causing the UI to become unresponsive, your only recourse is to do the updating in a secondary thread.


"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


AnswerRe: Add data to List control Pin
Vaclav_10-Sep-07 7:25
Vaclav_10-Sep-07 7:25 
AnswerRe: Add data to List control Pin
Nelek11-Sep-07 23:43
protectorNelek11-Sep-07 23:43 
QuestionHow to set a breakpoint in code Pin
Soundman32.210-Sep-07 4:24
Soundman32.210-Sep-07 4:24 
AnswerRe: How to set a breakpoint in code Pin
JudyL_MD10-Sep-07 4:35
JudyL_MD10-Sep-07 4:35 
GeneralRe: How to set a breakpoint in code Pin
Soundman32.210-Sep-07 5:32
Soundman32.210-Sep-07 5:32 
GeneralRe: How to set a breakpoint in code Pin
jhwurmbach10-Sep-07 7:21
jhwurmbach10-Sep-07 7:21 
GeneralRe: How to set a breakpoint in code Pin
JudyL_MD10-Sep-07 10:33
JudyL_MD10-Sep-07 10:33 
QuestionRegistry function Pin
john563210-Sep-07 3:56
john563210-Sep-07 3:56 
AnswerRe: Registry function Pin
David Crow10-Sep-07 5:17
David Crow10-Sep-07 5:17 
GeneralRe: Registry function Pin
led mike10-Sep-07 5:20
led mike10-Sep-07 5:20 
Questiondata initialization, syntax of C++? Pin
includeh1010-Sep-07 2:53
includeh1010-Sep-07 2:53 
AnswerRe: data initialization, syntax of C++? Pin
Russell'10-Sep-07 3:44
Russell'10-Sep-07 3:44 
AnswerRe: data initialization, syntax of C++? Pin
Michael Dunn10-Sep-07 19:53
sitebuilderMichael Dunn10-Sep-07 19:53 
QuestionHow to decrease the CPU usage Pin
GauranG Shah10-Sep-07 2:47
GauranG Shah10-Sep-07 2:47 
AnswerRe: How to decrease the CPU usage Pin
baerten10-Sep-07 2:50
baerten10-Sep-07 2:50 
GeneralRe: How to decrease the CPU usage Pin
GauranG Shah10-Sep-07 3:18
GauranG Shah10-Sep-07 3:18 
GeneralRe: How to decrease the CPU usage Pin
David Crow10-Sep-07 5:22
David Crow10-Sep-07 5:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.