MS\Internal\AutomationProxies\WindowsListView.cs (10)
890return (Misc.IsBitSet(state, NativeMethods.LVIS_FOCUSED));
1309return Misc.IsBitSet(GetItemState(hwnd, listItem, NativeMethods.LVIS_SELECTED), NativeMethods.LVIS_SELECTED);
1315return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.LVS_EDITLABELS);
1355return Misc.IsBitSet(GetExtendedListViewStyle(hwnd), NativeMethods.LVS_EX_ONECLICKACTIVATE);
1361return !Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.LVS_SINGLESEL);
1367return !Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.LVS_NOSCROLL);
1457return Misc.IsBitSet(GetExtendedListViewStyle(hwnd), NativeMethods.LVS_EX_CHECKBOXES);
1471return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.LVS_AUTOARRANGE);
1477return Misc.IsBitSet(GetExtendedListViewStyle(hwnd), NativeMethods.LVS_EX_FULLROWSELECT);
1483return Misc.IsBitSet(GetExtendedListViewStyle(hwnd), NativeMethods.LVS_EX_JUSTIFYCOLUMNS);
MS\Internal\AutomationProxies\WindowsMenu.cs (27)
231if (!Misc.IsBitSet(gui.dwFlags, NativeMethods.GUI_INMENUMODE))
293if (Misc.IsBitSet(gui.dwFlags, NativeMethods.GUI_SYSTEMMENUMODE))
302else if (Misc.IsBitSet(gui.dwFlags, NativeMethods.GUI_POPUPMENUMODE))
308else if (Misc.IsBitSet(gui.dwFlags, NativeMethods.GUI_INMENUMODE))
735return Misc.IsBitSet(gui.dwFlags, NativeMethods.GUI_SYSTEMMENUMODE);
883Misc.IsBitSet(mbi.focusFlags, 3))
924if (Misc.IsBitSet(state, NativeMethods.MF_HILITE))
1513while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) &&
1871return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE);
1886return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_CHECKED);
1900return (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MFT_RADIOCHECK) && menuItemInfo.hbmpChecked == IntPtr.Zero);
1915return (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_SEPARATOR) ||
1916Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBARBREAK) ||
1917Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBREAK));
1961if (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_SEPARATOR) ||
1962Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBARBREAK) ||
1963Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBREAK))
2202for (item = 0; item < cItems && !Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE); item++)
2337while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) &&
2368if (Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, i, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE))
2403Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, 0, NativeMethods.MF_BYPOSITION), NativeMethods.MF_BITMAP))
2564if (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_SEPARATOR) ||
2565Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBARBREAK) ||
2566Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_MENUBREAK))
2570else if (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MF_OWNERDRAW))
2656return !(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))