MS\Internal\AutomationProxies\WindowsListView.cs (10)
887return (Misc.IsBitSet(state, NativeMethods.LVIS_FOCUSED));
1306return Misc.IsBitSet(GetItemState(hwnd, listItem, NativeMethods.LVIS_SELECTED), NativeMethods.LVIS_SELECTED);
1312return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.LVS_EDITLABELS);
1352return Misc.IsBitSet(GetExtendedListViewStyle(hwnd), NativeMethods.LVS_EX_ONECLICKACTIVATE);
1358return !Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.LVS_SINGLESEL);
1364return !Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.LVS_NOSCROLL);
1455return Misc.IsBitSet(GetExtendedListViewStyle(hwnd), NativeMethods.LVS_EX_CHECKBOXES);
1469return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.LVS_AUTOARRANGE);
1475return Misc.IsBitSet(GetExtendedListViewStyle(hwnd), NativeMethods.LVS_EX_FULLROWSELECT);
1481return Misc.IsBitSet(GetExtendedListViewStyle(hwnd), NativeMethods.LVS_EX_JUSTIFYCOLUMNS);
MS\Internal\AutomationProxies\WindowsMenu.cs (27)
228if (!Misc.IsBitSet(gui.dwFlags, NativeMethods.GUI_INMENUMODE))
290if (Misc.IsBitSet(gui.dwFlags, NativeMethods.GUI_SYSTEMMENUMODE))
299else if (Misc.IsBitSet(gui.dwFlags, NativeMethods.GUI_POPUPMENUMODE))
305else if (Misc.IsBitSet(gui.dwFlags, NativeMethods.GUI_INMENUMODE))
732return Misc.IsBitSet(gui.dwFlags, NativeMethods.GUI_SYSTEMMENUMODE);
880Misc.IsBitSet(mbi.focusFlags, 3))
921if (Misc.IsBitSet(state, NativeMethods.MF_HILITE))
1508while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) &&
1866return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE);
1881return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_CHECKED);
1895return (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MFT_RADIOCHECK) && menuItemInfo.hbmpChecked == IntPtr.Zero);
1910return (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_SEPARATOR) ||
1911Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBARBREAK) ||
1912Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBREAK));
1956if (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_SEPARATOR) ||
1957Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBARBREAK) ||
1958Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBREAK))
2197for (item = 0; item < cItems && !Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE); item++)
2332while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) &&
2363if (Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, i, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE))
2398Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, 0, NativeMethods.MF_BYPOSITION), NativeMethods.MF_BITMAP))
2559if (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_SEPARATOR) ||
2560Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBARBREAK) ||
2561Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBREAK))
2565else if (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_OWNERDRAW))
2651return !(Misc.IsBitSet(state, NativeMethods.MF_DISABLED) | Misc.IsBitSet(state, NativeMethods.MF_GRAYED));
MS\Internal\AutomationProxies\WindowsTitleBar.cs (12)
206if (!Misc.IsBitSet(ti.rgstate[i], NativeMethods.STATE_SYSTEM_INVISIBLE) || i == _systemMenu)
222return !Misc.IsBitSet(ti.rgstate[0], NativeMethods.STATE_SYSTEM_INVISIBLE);
287if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_MINIMIZE))
297if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_MAXIMIZE))
318if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_DISABLED))
323return Misc.IsBitSet(WindowExStyle, NativeMethods.WS_EX_CONTEXTHELP);
329if (Misc.IsBitSet(style, NativeMethods.WS_DISABLED))
334return Misc.IsBitSet(style, NativeMethods.WS_MINIMIZEBOX);
341if (Misc.IsBitSet(style, NativeMethods.WS_DISABLED))
346return Misc.IsBitSet(style, NativeMethods.WS_MAXIMIZEBOX);
372if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_MINIMIZE))
381if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_MAXIMIZE))