From: Babu on
Folks,

I have noticed that if you are doing custom drawing for listview
control then the functionality breaks in WM 6.5. I believe most of
the apps out there use custom drawing for list view and the app will
break i.e. the display will become garbled once the user starts using
gestures.

You can try out the sample code in Windows Mobile 6 SDK.
C:\Program Files\Windows Mobile 6 SDK\Samples\Common\CPP
\Win32\OwnerListView

Launch it WM 6.5 emulator or a device. Use gestures and you will see
what I mean. You will have to increase the number of items in the
list.

Let me know if any of you have solved this problem. Any pointers
welcome.

Thanks,
Babu

From: Babu on
Here is the solution:
the sample has a little bug inside WM_DRAWITEM message handler.
ReleaseDC shouldn’t be called on DRAWITEMSTRUCT.hDC. Once you remove
this call everything works as expected.

- Babu

On Feb 2, 11:21 am, Babu <dpcb...(a)gmail.com> wrote:
> Folks,
>
> I have noticed that if you are doing custom drawing for listview
> control then the functionality breaks in WM 6.5.  I believe most of
> the apps out there use custom drawing for list view and the app will
> break i.e. the display will become garbled once the user starts using
> gestures.
>
> You can try out the sample code in Windows Mobile 6 SDK.
> C:\Program Files\Windows Mobile 6 SDK\Samples\Common\CPP
> \Win32\OwnerListView
>
> Launch it WM 6.5 emulator or a device. Use gestures and you will see
> what I mean. You will have to increase the number of items in the
> list.
>
> Let me know if any of you have solved this problem. Any pointers
> welcome.
>
> Thanks,
> Babu