In Depth Banner
Skip Navigation Links

Select your preferred language

WndProc for the CustomListViewEx class.

    protected override void WndProc(ref Message m)

    {

      switch(m.Msg)

      {

        case (int)(WMDefs.WM_REFLECT | WMDefs.WM_NOTIFY):

          //Check its for us...

          NMHDR hdr=(NMHDR)m.GetLParam(typeof(NMHDR));

          if(hdr.code==(int)NMDefs.NM_CUSTOMDRAW)

            //process it if it is

            m.Result=(IntPtr)ProcessNotify(ref m);

          else

            //hand off to the base if it isn't

            base.WndProc(ref m);

          break;

        default:

          base.WndProc(ref m);

          break;

      }

    }

Return to the article.

Copyright © Bob Powell 2003-2009. All rights reserved