protected override void WndProc(ref Message m)
{
switch (m.Msg) {
case NativeMethods.WM_HSCROLL:
// Raise the scroll event when the scroller is scrolled
base.WndProc(ref m);
this.OnHScroll(new ScrollEventArgs(((ScrollEventType)NativeMethods.LoWord(m.WParam)),_oldValue, NativeMethods.HiWord(m.WParam), ScrollOrientation.HorizontalScroll));
break;
// case NativeMethods.WM_PAINT:
//
// // Handle painting ourselves rather than call the base OnPaint.
// CustomPaint(ref m);
// break;
default:
base.WndProc(ref m);
break;
}
}