Click here to Skip to main content
15,916,288 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About scrollbar of CScrollView Pin
cash57626-Apr-05 19:28
cash57626-Apr-05 19:28 
GeneralRe: About scrollbar of CScrollView Pin
PJ Arends26-Apr-05 20:12
professionalPJ Arends26-Apr-05 20:12 
GeneralIs their a easier way to make windows forms inc++ Pin
FocusedWolf26-Apr-05 5:04
FocusedWolf26-Apr-05 5:04 
GeneralRe: Is their a easier way to make windows forms inc++ Pin
toxcct26-Apr-05 5:53
toxcct26-Apr-05 5:53 
GeneralMFC DLL Pin
Manoj Jangid26-Apr-05 4:54
Manoj Jangid26-Apr-05 4:54 
GeneralProblem with vertical scrolling in listview Pin
Paul Vickery26-Apr-05 4:25
professionalPaul Vickery26-Apr-05 4:25 
GeneralRe: Problem with vertical scrolling in listview Pin
PJ Arends26-Apr-05 12:25
professionalPJ Arends26-Apr-05 12:25 
GeneralRe: Problem with vertical scrolling in listview Pin
Paul Vickery27-Apr-05 2:24
professionalPaul Vickery27-Apr-05 2:24 
I think it must be something to do with that, though turning off the header doesn't make it any better.

You can try it easily by subclassing a ListView control, then handling WM_NCCALCSIZE and adding something like
lpncsp->rgrc[0].top += 20;

Now, add a load of items to the list, and you will see that the vertical scroll-bar doesn't allow you to scroll right to the bottom of the client area. The bottom items get clipped.

I can't find any way of telling the ListView how big to consider its client area to be.

The closest I have to a solution is to fiddle the scroll bars on scrolling:

SCROLLINFO si = { sizeof(si), SIF_RANGE };
m_pList->GetScrollInfo(SB_VERT, &si);
si.nMax = m_pList->SendMessage(LVM_GETITEMCOUNT);
m_pList->SetScrollInfo(SB_VERT, &si);

This allows me to scroll to the bottom, and shows me the bottom item when scrolling, but on releasing the mouse button it jumps back up one notch.

I know you like a challenge, and will no doubt find me a solution! Cool | :cool:


"The way of a fool seems right to him, but a wise man listens to advice" - Proverbs 12:15 (NIV)
GeneralChanging font sizes in c++ Pin
garysrobbo26-Apr-05 2:08
garysrobbo26-Apr-05 2:08 
GeneralRe: Changing font sizes in c++ Pin
ThatsAlok26-Apr-05 2:19
ThatsAlok26-Apr-05 2:19 
GeneralRe: Changing font sizes in c++ Pin
Jason Henderson26-Apr-05 3:42
Jason Henderson26-Apr-05 3:42 
Generalproxy + NTLM Pin
Geert van Horrik26-Apr-05 1:18
Geert van Horrik26-Apr-05 1:18 
QuestionHow to unload dlls Pin
Anonymous26-Apr-05 0:54
Anonymous26-Apr-05 0:54 
AnswerRe: How to unload dlls Pin
stolid_rock26-Apr-05 1:13
stolid_rock26-Apr-05 1:13 
GeneralRe: How to unload dlls Pin
Anonymous26-Apr-05 1:22
Anonymous26-Apr-05 1:22 
AnswerRe: How to unload dlls Pin
ThatsAlok26-Apr-05 1:37
ThatsAlok26-Apr-05 1:37 
AnswerRe: How to unload dlls Pin
22491726-Apr-05 1:47
22491726-Apr-05 1:47 
QuestionHow to get drive volume serial number in VC++ Pin
aloktambi26-Apr-05 0:52
aloktambi26-Apr-05 0:52 
AnswerRe: How to get drive volume serial number in VC++ Pin
ThatsAlok26-Apr-05 1:21
ThatsAlok26-Apr-05 1:21 
AnswerRe: How to get drive volume serial number in VC++ Pin
David Crow26-Apr-05 3:40
David Crow26-Apr-05 3:40 
GeneralFile handles Pin
micutzu25-Apr-05 23:14
micutzu25-Apr-05 23:14 
GeneralRe: File handles Pin
22491725-Apr-05 23:35
22491725-Apr-05 23:35 
GeneralRe: File handles Pin
micutzu25-Apr-05 23:51
micutzu25-Apr-05 23:51 
GeneralRe: File handles Pin
Stlan26-Apr-05 1:55
Stlan26-Apr-05 1:55 
GeneralRe: File handles Pin
micutzu26-Apr-05 2:25
micutzu26-Apr-05 2:25 

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.