Click here to Skip to main content
15,904,415 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Scroll bar in Listview Pin
Hans Dietrich28-Apr-11 21:56
mentorHans Dietrich28-Apr-11 21:56 
GeneralRe: Scroll bar in Listview [modified] Pin
Niklas L28-Apr-11 22:18
Niklas L28-Apr-11 22:18 
AnswerRe: Scroll bar in Listview Pin
Hans Dietrich29-Apr-11 0:31
mentorHans Dietrich29-Apr-11 0:31 
QuestionRe: Scroll bar in Listview Pin
Niklas L29-Apr-11 0:50
Niklas L29-Apr-11 0:50 
AnswerRe: Scroll bar in Listview Pin
Hans Dietrich29-Apr-11 4:21
mentorHans Dietrich29-Apr-11 4:21 
GeneralRe: Scroll bar in Listview Pin
TheHelenLee28-Apr-11 23:52
TheHelenLee28-Apr-11 23:52 
AnswerRe: Scroll bar in Listview Pin
Hans Dietrich29-Apr-11 0:19
mentorHans Dietrich29-Apr-11 0:19 
GeneralRe: Scroll bar in Listview Pin
TheHelenLee29-Apr-11 22:13
TheHelenLee29-Apr-11 22:13 
I probably did or didn't do something which caused the scrollbar to stop working in my listview.
I wrote the following workaround in OnHdnItemchanged and it sort of fixed the problem except that
if I push the last column all the way passes the right edge of my listview, the scrollbar thumb track
does not adjust or the view does not expand to include the last column.

int iTotalWidth=0;
for(int i=0; i < 16; i++)
{
int iWidth = GetListCtrl().GetColumnWidth(i);
iTotalWidth += iWidth;
}

GetListCtrl().SetScrollRange(SB_HORZ, 0, iTotalWidth,0);

Invalidate();

If anyone has any idea, please help!

Thanks!!
QuestionADO recordset moveNext abnormal Pin
Jokcy28-Apr-11 16:58
Jokcy28-Apr-11 16:58 
AnswerRe: ADO recordset moveNext abnormal Pin
barneyman28-Apr-11 18:57
barneyman28-Apr-11 18:57 
GeneralRe: ADO recordset moveNext abnormal Pin
Jokcy28-Apr-11 19:08
Jokcy28-Apr-11 19:08 
GeneralRe: ADO recordset moveNext abnormal Pin
barneyman28-Apr-11 19:21
barneyman28-Apr-11 19:21 
GeneralRe: ADO recordset moveNext abnormal Pin
Jokcy29-Apr-11 4:29
Jokcy29-Apr-11 4:29 
GeneralRe: ADO recordset moveNext abnormal Pin
barneyman29-Apr-11 17:13
barneyman29-Apr-11 17:13 
GeneralRe: ADO recordset moveNext abnormal Pin
Jokcy30-Apr-11 4:40
Jokcy30-Apr-11 4:40 
QuestionWriting to the console only (without re-direction) Pin
Member 385202428-Apr-11 12:00
Member 385202428-Apr-11 12:00 
AnswerRe: Writing to the console only (without re-direction) Pin
Hans Dietrich28-Apr-11 12:09
mentorHans Dietrich28-Apr-11 12:09 
GeneralRe: Writing to the console only (without re-direction) Pin
Member 385202428-Apr-11 12:15
Member 385202428-Apr-11 12:15 
GeneralRe: Writing to the console only (without re-direction) Pin
Hans Dietrich28-Apr-11 12:20
mentorHans Dietrich28-Apr-11 12:20 
GeneralRe: Writing to the console only (without re-direction) Pin
Member 385202428-Apr-11 12:52
Member 385202428-Apr-11 12:52 
GeneralRe: Writing to the console only (without re-direction) Pin
Member 385202428-Apr-11 13:08
Member 385202428-Apr-11 13:08 
AnswerRe: Writing to the console only (without re-direction) Pin
Hans Dietrich28-Apr-11 13:12
mentorHans Dietrich28-Apr-11 13:12 
GeneralRe: Writing to the console only (without re-direction) Pin
Member 385202428-Apr-11 13:29
Member 385202428-Apr-11 13:29 
QuestionXML Parsing using Tiny XML Pin
pix_programmer28-Apr-11 3:55
pix_programmer28-Apr-11 3:55 
AnswerRe: XML Parsing using Tiny XML Pin
Code-o-mat28-Apr-11 4:10
Code-o-mat28-Apr-11 4: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.