protected override void WndProc(ref Message m)
{
const int WM_DESTROY = 2;
const int WM_SETCURSOR = 0x20;
const int WM_NOTIFY = 0x4E;
const int WM_MOUSEMOVE = 0x200;
const int HDM_FIRST = 0x1200;
const int HDM_LAYOUT = (HDM_FIRST + 5);
switch (m.Msg) {
case WM_SETCURSOR:
if (!this.HandleSetCursor(ref m))
return;
break;
case WM_NOTIFY:
if (!this.HandleNotify(ref m))
return;
break;
case WM_MOUSEMOVE:
if (!this.HandleMouseMove(ref m))
return;
break;
case HDM_LAYOUT:
if (!this.HandleLayout(ref m))
return;
break;
case WM_DESTROY:
if (!this.HandleDestroy(ref m))
return;
break;
}
base.WndProc(ref m);
}