From: Sarbeswar Meher on

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...(a)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
>