Click here to Skip to main content
16,011,170 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPlease help !!!! Pin
Bravoone_200610-Sep-06 20:00
Bravoone_200610-Sep-06 20:00 
AnswerRe: Please help !!!! Pin
Rinu_Raj10-Sep-06 20:23
Rinu_Raj10-Sep-06 20:23 
AnswerRe: Please help !!!! Pin
Bravoone_200610-Sep-06 20:31
Bravoone_200610-Sep-06 20:31 
GeneralRe: Please help !!!! Pin
Hamid_RT10-Sep-06 21:31
Hamid_RT10-Sep-06 21:31 
QuestionRe: Please help !!!! Pin
Bravoone_200610-Sep-06 21:35
Bravoone_200610-Sep-06 21:35 
AnswerRe: Please help !!!! Pin
vinclaro00110-Sep-06 21:45
vinclaro00110-Sep-06 21:45 
GeneralRe: Please help !!!! Pin
David Crow11-Sep-06 3:57
David Crow11-Sep-06 3:57 
AnswerRe: Please help !!!! Pin
bosfan10-Sep-06 21:45
bosfan10-Sep-06 21:45 
Hello,
i wondered, why you use this:
<br />
m_list.LockWindowUpdate(); // why LockWindowUpdate(); ???? you see your results after all the records r reading!? What when you want to read 100000 records? wait so long to see something?<br />
// you should show the items in the list, i just make a litle function, only when they is finish, all items are showed! show the items immediately <br />
nt nItem = m_list.InsertItem(x, pPlan->m_name); // dont need nItem, use x instead! when you use SetItemText directly after InsertItem, it is the same index<br />
m_list.SetItemText(x, 1, pPlan->m_den);<br />
pPlan->MoveNext(); <br />
x++;<br />


this maybe:
<br />
void CMyListCtrl::FillList()<br />
{<br />
<br />
CDatabase_Plan* pPlan = new CDatabase_Plan();<br />
if (!pPlan->Open())<br />
return;<br />
<br />
<br />
if (pPlan->IsOpen())<br />
{<br />
int x = 0;<br />
<br />
//m_list.LockWindowUpdate(); // dont loock the window!<br />
<br />
while (!pPlan->IsEOF() )<br />
{<br />
<br />
//int nItem = m_list.InsertItem(x, pPlan->m_name); // dont use for all next item an new variable<br />
m_list.InsertItem(x, pPlan->m_name);<br />
//m_list.SetItemText(nItem, 1, pPlan->m_den);<br />
m_list.SetItemText(x, 1, pPlan->m_den); // use the same!<br />
pPlan->MoveNext();<br />
<br />
x++;<br />
}<br />
}<br />
<br />
//m_list.UnlockWindowUpdate();<br />
m_list.Invalidate();<br />
m_list.UpdateWindow();<br />
<br />
pPlan->Close();<br />
<br />
<br />
}<br />
<br />
this is an litle idea from me...hope this helps litle :)<br />
<br />
regards<br />
break;

GeneralRe: Please help !!!! Pin
Bravoone_200610-Sep-06 22:00
Bravoone_200610-Sep-06 22:00 
GeneralRe: Please help !!!! Pin
bosfan10-Sep-06 22:15
bosfan10-Sep-06 22:15 
QuestionRe: Please help !!!! Pin
Bravoone_200610-Sep-06 22:35
Bravoone_200610-Sep-06 22:35 
GeneralRe: Please help !!!! Pin
BadKarma10-Sep-06 23:05
BadKarma10-Sep-06 23:05 
QuestionRe: Please help !!!! Pin
Bravoone_200611-Sep-06 0:00
Bravoone_200611-Sep-06 0:00 
QuestionRe: Please help !!!! Pin
Bravoone_200611-Sep-06 0:34
Bravoone_200611-Sep-06 0:34 
QuestionRe: Please help !!!! Pin
Bravoone_200611-Sep-06 3:02
Bravoone_200611-Sep-06 3:02 
AnswerRe: Please help !!!! Pin
Hamid_RT12-Sep-06 8:06
Hamid_RT12-Sep-06 8:06 
Questionunregistering COM dll through code Pin
_tasleem10-Sep-06 19:38
_tasleem10-Sep-06 19:38 
AnswerRe: unregistering COM dll through code Pin
Paul M Watt10-Sep-06 19:44
mentorPaul M Watt10-Sep-06 19:44 
GeneralRe: unregistering COM dll through code Pin
_tasleem10-Sep-06 20:11
_tasleem10-Sep-06 20:11 
GeneralRe: unregistering COM dll through code Pin
prasad_som10-Sep-06 22:39
prasad_som10-Sep-06 22:39 
GeneralRe: unregistering COM dll through code Pin
_tasleem11-Sep-06 0:16
_tasleem11-Sep-06 0:16 
GeneralRe: unregistering COM dll through code Pin
Paul M Watt11-Sep-06 6:23
mentorPaul M Watt11-Sep-06 6:23 
GeneralRe: unregistering COM dll through code Pin
_tasleem12-Sep-06 18:48
_tasleem12-Sep-06 18:48 
QuestionSocket Programming - no event raised Pin
Ranjan Shrestha10-Sep-06 19:14
Ranjan Shrestha10-Sep-06 19:14 
AnswerRe: Socket Programming - no event raised Pin
Moak4-Oct-06 4:57
Moak4-Oct-06 4:57 

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.