This is for Win32 or WinCE application. Currently Microsoft supports the
ownerdraw listview with style LVS_REPORT where as it doesn't support for
LVS_ICON, LVS_SMALLICON and LVS_LIST. It means ON_WM_DRAWITEM() is invoked
only for LVS_REPORT style. If something is not implemented, then it should be
clearly mentioned in MSDN. I am requesting Microsoft to solve this bug.

Re: Ownerdraw ListView problem for styles with style list, icon, by mahendra

mahendra
Thu May 08 00:29:25 PDT 2008

On May 7, 5:13 pm, Sarbeswar Meher <Sarbeswar
Me...@discussions.microsoft.com> wrote:
> This is for Win32 or WinCE application. Currently Microsoft supports the
> ownerdraw listview with style LVS_REPORT where as it doesn't support for
> LVS_ICON, LVS_SMALLICON and LVS_LIST. It means ON_WM_DRAWITEM() is invoked
> only for LVS_REPORT style. If something is not implemented, then it should be
> clearly mentioned in MSDN. I am requesting Microsoft to solve this bug.

create list with style LVS_OWNERDRAW and map WM_DRAWITEM and
WM_MEASUREITEM

Re: Ownerdraw ListView problem for styles with style list, icon, s by SarbeswarMeher

SarbeswarMeher
Thu May 08 01:21:00 PDT 2008


Perhaps you didn't get my question. Obviously listview will be set style as
LVS_OWNERDRAWFIXED to make it ownerdraw. The mapped function for WM_DRAWITEM
and WM_MEASUREITEM will be called only if the listivew style is LVS_REPORT.
But it doesn't work with the styles having LVS_LIST, LVS_ICON and
LVS_SMALLICON.


"mahendra" wrote:

> On May 7, 5:13 pm, Sarbeswar Meher <Sarbeswar
> Me...@discussions.microsoft.com> wrote:
> > This is for Win32 or WinCE application. Currently Microsoft supports the
> > ownerdraw listview with style LVS_REPORT where as it doesn't support for
> > LVS_ICON, LVS_SMALLICON and LVS_LIST. It means ON_WM_DRAWITEM() is invoked
> > only for LVS_REPORT style. If something is not implemented, then it should be
> > clearly mentioned in MSDN. I am requesting Microsoft to solve this bug.
>
> create list with style LVS_OWNERDRAW and map WM_DRAWITEM and
> WM_MEASUREITEM
>