protected override void WndProc(ref Message message)
{
base.WndProc(ref message);
switch (message.Msg)
{
case NativeMethods.WM_NOTIFY:
case NativeMethods.WM_NOTIFY + NativeMethods.WM_REFLECT:
{
NativeMethods.NMHDR note = (NativeMethods.NMHDR)message.GetLParam(typeof(NativeMethods.NMHDR));
switch (note.code)
{
case NativeMethods.RBN_HEIGHTCHANGE:
this.UpdateSize();
break;
case NativeMethods.RBN_CHEVRONPUSHED:
this.NotifyChevronPushed(ref message);
break;
}
}
break;
}
}