/// <summary> /// /// </summary> private void UnSubclass() { NativeMethods.SetWindowLong(handle, -4, orgWndProc); }
/// <summary> /// /// </summary> /// <param name="m"></param> private void CallWindowProc(ref Message m) { m.Result = NativeMethods.CallWindowProc(orgWndProc, m.HWnd, m.Msg, m.WParam, m.LParam); }
/// <summary> /// /// </summary> private void Subclass() { hookedWndProc = Callback; orgWndProc = NativeMethods.SetWindowLong(handle, -4, hookedWndProc); }