/// <summary> /// /// </summary> private void Subclass() { if ((Handle != IntPtr.Zero) && (defWindowProc == IntPtr.Zero)) { defWindowProc = NativeMethods.GetWindowLong(Handle, -4); windowProc = Callback; NativeMethods.SetWindowLong(Handle, -4, windowProc); } }
public static bool IsScollBarVisibile(this Control control) { var style = (int)NativeMethods.GetWindowLong(control.Handle, -16); return((style & WS_VSCROLL) != 0); }