MS\Internal\AutomationProxies\WindowsListView.cs (10)
901return (Misc.IsBitSet(state, NativeMethods.LVIS_FOCUSED));
1320return Misc.IsBitSet(GetItemState(hwnd, listItem, NativeMethods.LVIS_SELECTED), NativeMethods.LVIS_SELECTED);
1326return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.LVS_EDITLABELS);
1366return Misc.IsBitSet(GetExtendedListViewStyle(hwnd), NativeMethods.LVS_EX_ONECLICKACTIVATE);
1372return !Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.LVS_SINGLESEL);
1378return !Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.LVS_NOSCROLL);
1466return Misc.IsBitSet(GetExtendedListViewStyle(hwnd), NativeMethods.LVS_EX_CHECKBOXES);
1480return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.LVS_AUTOARRANGE);
1486return Misc.IsBitSet(GetExtendedListViewStyle(hwnd), NativeMethods.LVS_EX_FULLROWSELECT);
1492return Misc.IsBitSet(GetExtendedListViewStyle(hwnd), NativeMethods.LVS_EX_JUSTIFYCOLUMNS);
MS\Internal\AutomationProxies\WindowsMenu.cs (27)
244if (!Misc.IsBitSet(gui.dwFlags, NativeMethods.GUI_INMENUMODE))
306if (Misc.IsBitSet(gui.dwFlags, NativeMethods.GUI_SYSTEMMENUMODE))
315else if (Misc.IsBitSet(gui.dwFlags, NativeMethods.GUI_POPUPMENUMODE))
321else if (Misc.IsBitSet(gui.dwFlags, NativeMethods.GUI_INMENUMODE))
748return Misc.IsBitSet(gui.dwFlags, NativeMethods.GUI_SYSTEMMENUMODE);
896Misc.IsBitSet(mbi.focusFlags, 3))
938if (Misc.IsBitSet(state, NativeMethods.MF_HILITE))
1528while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) &&
1886return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE);
1901return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_CHECKED);
1915return (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MFT_RADIOCHECK) && menuItemInfo.hbmpChecked == IntPtr.Zero);
1930return (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_SEPARATOR) ||
1931Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBARBREAK) ||
1932Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBREAK));
1976if (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_SEPARATOR) ||
1977Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBARBREAK) ||
1978Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBREAK))
2217for (item = 0; item < cItems && !Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE); item++)
2352while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) &&
2383if (Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, i, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE))
2418Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, 0, NativeMethods.MF_BYPOSITION), NativeMethods.MF_BITMAP))
2579if (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_SEPARATOR) ||
2580Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBARBREAK) ||
2581Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBREAK))
2585else if (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_OWNERDRAW))
2671return !(Misc.IsBitSet(state, NativeMethods.MF_DISABLED) | Misc.IsBitSet(state, NativeMethods.MF_GRAYED));
MS\Internal\AutomationProxies\WindowsTitleBar.cs (12)
218if (!Misc.IsBitSet(ti.rgstate[i], NativeMethods.STATE_SYSTEM_INVISIBLE) || i == _systemMenu)
234return !Misc.IsBitSet(ti.rgstate[0], NativeMethods.STATE_SYSTEM_INVISIBLE);
299if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_MINIMIZE))
309if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_MAXIMIZE))
330if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_DISABLED))
335return Misc.IsBitSet(WindowExStyle, NativeMethods.WS_EX_CONTEXTHELP);
341if (Misc.IsBitSet(style, NativeMethods.WS_DISABLED))
346return Misc.IsBitSet(style, NativeMethods.WS_MINIMIZEBOX);
353if (Misc.IsBitSet(style, NativeMethods.WS_DISABLED))
358return Misc.IsBitSet(style, NativeMethods.WS_MAXIMIZEBOX);
384if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_MINIMIZE))
393if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_MAXIMIZE))