Exemplo n.º 1
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);
     }
 }
Exemplo n.º 2
0
        public static bool IsScollBarVisibile(this Control control)
        {
            var style = (int)NativeMethods.GetWindowLong(control.Handle, -16);

            return((style & WS_VSCROLL) != 0);
        }