Click here to Skip to main content
15,917,320 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to create a window please help Pin
Michael P Butler21-Mar-03 0:07
Michael P Butler21-Mar-03 0:07 
GeneralRe: How to create a window please help Pin
Jump_Around21-Mar-03 0:26
Jump_Around21-Mar-03 0:26 
GeneralStarting Up Books Pin
BZZR20-Mar-03 23:24
BZZR20-Mar-03 23:24 
GeneralRe: Starting Up Books Pin
Le Ridder Noir20-Mar-03 23:43
Le Ridder Noir20-Mar-03 23:43 
GeneralRe: Starting Up Books Pin
Paul Ingles21-Mar-03 1:09
Paul Ingles21-Mar-03 1:09 
GeneralRe: Starting Up Books Pin
valikac21-Mar-03 6:06
valikac21-Mar-03 6:06 
GeneralRe: Starting Up Books Pin
BZZR21-Mar-03 8:16
BZZR21-Mar-03 8:16 
GeneralRe: Starting Up Books Pin
John R. Shaw21-Mar-03 10:11
John R. Shaw21-Mar-03 10:11 
GeneralRe: Starting Up Books Pin
georgiek5021-Mar-03 13:40
georgiek5021-Mar-03 13:40 
GeneralRe: Starting Up Books Pin
John R. Shaw21-Mar-03 20:13
John R. Shaw21-Mar-03 20:13 
GeneralAdding icon in the statusbar... Pin
Daniel Strigl20-Mar-03 23:21
Daniel Strigl20-Mar-03 23:21 
GeneralRe: Adding icon in the statusbar... Pin
Le Ridder Noir20-Mar-03 23:49
Le Ridder Noir20-Mar-03 23:49 
GeneralRe: Adding icon in the statusbar... Pin
Anonymous20-Mar-03 23:59
Anonymous20-Mar-03 23:59 
GeneralRe: Adding icon in the statusbar... Pin
Ravi Bhavnani21-Mar-03 2:16
professionalRavi Bhavnani21-Mar-03 2:16 
Questionwhy CAsyncSocket always failed while Connect()??? Pin
ashxly20-Mar-03 23:06
ashxly20-Mar-03 23:06 
AnswerRe: why CAsyncSocket always failed while Connect()??? Pin
jmkhael21-Mar-03 1:28
jmkhael21-Mar-03 1:28 
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 

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.