public static extern IntPtr SetWindowLong(IntPtr hwnd, int index, MyWndProc my);
public MyDataGridView() { this.Wpr = new MyWndProc(this.MyControlWndProc); this.ldWndProc = SetWindowLong(this.Handle, GWL_WNDPROC, Wpr); }
public static extern IntPtr SetWindowLong(IntPtr hwnd, int index, MyWndProc my);
private static extern IntPtr SetWindowLong(IntPtr hWnd, int nIndex, MyWndProc wndProc);