bowdom

hi all,


I want to smooth scroll content of a listctrl.

at first i SendMessage LVM_SCROLL. but listctrl scrolled vertically in whole line increments.

then i use ScrollDC to scroll down, listctrl scroll smoothly well. but after scroll the newly invalidated region is filled by part of the first item which is visible before scroll.

i had tried to use Clip Region (SelectClipRgn) and change view port origin (SetViewportOrgEx). but it seems no work.

my question is: how to update listctrl to let it draw part of the previous item and DO NOT affect already scrolled region

thanks for any suggestion.




Re: Smart Devices Native C++ Development How to smooth scroll( pixel scroll ) a ListViewCtrl in report style ?

Guang-Ming Bian - MSFT

Hi bowdom,

Please look at the thread which may help you:

http://groups.google.com/group/microsoft.public.vc.mfc/browse_thread/thread/60d750a6491148c4/5f5d0f8b3531cf7b

Best regards,

Guang-Ming Bian - MSFT






Re: Smart Devices Native C++ Development How to smooth scroll( pixel scroll ) a ListViewCtrl in report style ?

bowdom

thanks for your reply.

but i can not find something related with smooth scroll in thread you provided.

actually i want to implement the function like software "Spb Pocket Plus 4". http://www.spbsoftwarehouse.com/products/pocketplus/ en

it support "smart scrolling" which can smooth scroll such as file exploer window, contact list window. etc

i wonder how it implement this and begin to try to simulate it. now the result is as described at first post.