Click here to Skip to main content
15,902,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: why CAsyncSocket always failed while Connect()??? Pin
ashxly23-Mar-03 14:20
ashxly23-Mar-03 14:20 
AnswerRe: why CAsyncSocket always failed while Connect()??? Pin
Moak21-Mar-03 6:20
Moak21-Mar-03 6:20 
GeneralRe: why CAsyncSocket always failed while Connect()??? Pin
ashxly23-Mar-03 14:37
ashxly23-Mar-03 14:37 
GeneralRe: why CAsyncSocket always failed while Connect()??? Pin
Moak23-Mar-03 15:44
Moak23-Mar-03 15:44 
GeneralRe: why CAsyncSocket always failed while Connect()??? Pin
ashxly25-Mar-03 22:05
ashxly25-Mar-03 22:05 
GeneralRe: why CAsyncSocket always failed while Connect()??? Pin
ashxly25-Mar-03 22:05
ashxly25-Mar-03 22:05 
Generalactivex control mnemonics Pin
Hans Ruck20-Mar-03 22:48
Hans Ruck20-Mar-03 22:48 
GeneralReading the Scrollbar of a CListBox/CComboBox Pin
Willem B20-Mar-03 22:42
Willem B20-Mar-03 22:42 
hi,

I want to make an program that reads the content of a listbox from a different source. The reason is, if there are a 1000 records requested over a network it only has to load the records that are shown. Causing that the user doesn't have to wait for the downloading of all the 1000 records.

the way i'm doing it now is by filling the listbox with empty records:

<br />
for (int i = 0; (!(i > Db.GetCount())); i++)<br />
{<br />
	m_MyListBox.InsertString(i, "");<br />
}<br />


Then, Wenn the user wants to see a different part of the listbox i update the data:

<br />
int cur, max;<br />
<br />
cur = m_MyListBox.GetScrollPos(SB_VERT);<br />
max = Db.GetCount();<br />
<br />
if (!(cur + 5 > max))<br />
{<br />
	max = cur + 5;<br />
}<br />
<br />
for (int i = cur; (!(i > max)); i++)<br />
{<br />
	m_MyListBox.DeleteString(i);<br />
	m_MyListBox.InsertString(i, Db.GetItem(i));<br />
}<br />


Now, I want to run this function wenn the Scrollbar is moved, but i dont know witch message to catch. Anyone have the solution?

I hope my explaining of the problem is correct, my english isn't that great...

[]D [] []D []
GeneralRe: Reading the Scrollbar of a CListBox/CComboBox Pin
valikac21-Mar-03 6:10
valikac21-Mar-03 6:10 
GeneralSetWindowsHookEx and WM_NOTIFY problems Pin
Ceri20-Mar-03 22:25
Ceri20-Mar-03 22:25 
GeneralSerializatoin Pin
RizyDeWino20-Mar-03 21:26
RizyDeWino20-Mar-03 21:26 
GeneralRe: Serializatoin Pin
jmkhael21-Mar-03 1:30
jmkhael21-Mar-03 1:30 
GeneralAbout CPropertyView Using Pin
liuxiaojun20-Mar-03 21:20
liuxiaojun20-Mar-03 21:20 
GeneralInternational Software Pin
Olli20-Mar-03 20:07
Olli20-Mar-03 20:07 
GeneralRe: International Software Pin
Roger Allen21-Mar-03 0:03
Roger Allen21-Mar-03 0:03 
GeneralRe: International Software Pin
Olli23-Mar-03 19:46
Olli23-Mar-03 19:46 
GeneralRe: International Software Pin
John R. Shaw21-Mar-03 10:27
John R. Shaw21-Mar-03 10:27 
GeneralRe: International Software Pin
Olli23-Mar-03 19:48
Olli23-Mar-03 19:48 
Generala small problem with windows messages (SDK) Pin
r i s h a b h s20-Mar-03 19:54
r i s h a b h s20-Mar-03 19:54 
GeneralRe: a small problem with messages (SDK) Pin
Oliver Anhuth20-Mar-03 20:58
Oliver Anhuth20-Mar-03 20:58 
GeneralRe: a small problem with messages (SDK) Pin
r i s h a b h s20-Mar-03 22:05
r i s h a b h s20-Mar-03 22:05 
GeneralRe: a small problem with messages (SDK) Pin
Oliver Anhuth20-Mar-03 22:12
Oliver Anhuth20-Mar-03 22:12 
Generalsocket question (listen, accept) Pin
Daniel Strigl20-Mar-03 19:42
Daniel Strigl20-Mar-03 19:42 
GeneralRe: socket question (listen, accept) Pin
Joaquín M López Muñoz20-Mar-03 20:00
Joaquín M López Muñoz20-Mar-03 20:00 
GeneralRe: socket question (listen, accept) Pin
Daniel Strigl20-Mar-03 20:10
Daniel Strigl20-Mar-03 20:10 

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.