Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 private void UnSubclass()
 {
     if (defWindowProc != IntPtr.Zero)
     {
         NativeMethods.SetWindowLong(Handle, -4, defWindowProc);
         defWindowProc = IntPtr.Zero;
         windowProc    = null;
     }
 }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 private void Subclass()
 {
     if ((Handle != IntPtr.Zero) && (defWindowProc == IntPtr.Zero))
     {
         defWindowProc = NativeMethods.GetWindowLong(Handle, -4);
         windowProc    = Callback;
         NativeMethods.SetWindowLong(Handle, -4, windowProc);
     }
 }
 /// <summary>
 ///
 /// </summary>
 private void UnSubclass()
 {
     NativeMethods.SetWindowLong(handle, -4, orgWndProc);
 }
 /// <summary>
 ///
 /// </summary>
 private void Subclass()
 {
     hookedWndProc = Callback;
     orgWndProc = NativeMethods.SetWindowLong(handle, -4, hookedWndProc);
 }