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

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