Exemplo n.º 1
0
 internal static bool IsCheckBoxStateReadable(System.IntPtr hWnd)
 {
     switch ((Win32NativeMethods.GetWindowLong(hWnd, WinUserConstant.GWL_STYLE) & ((uint)15)))
     {
     case 2:
     case 3:
     case 4:
     case 5:
     case 6:
     case 9:
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 internal static bool IsWindowDisabled(System.IntPtr hWnd)
 {
     return((bool)((Win32NativeMethods.GetWindowLong(hWnd, WinUserConstant.GWL_STYLE) & 0x8000000) == 0x8000000));
 }