132 references to IsBitSet
UIAutomationClientSideProviders (132)
MS\Internal\AutomationProxies\Accessible.cs (1)
715return Misc.IsBitSet((int)state, (int)testState);
MS\Internal\AutomationProxies\ClickablePoint.cs (1)
87if (Misc.IsBitSet(Misc.GetWindowStyle(hwndCurrent), NativeMethods.WS_POPUP))
MS\Internal\AutomationProxies\EventManager.cs (2)
452if (Misc.IsBitSet(style, NativeMethods.WS_MAXIMIZE)) 456else if (Misc.IsBitSet(style, NativeMethods.WS_MINIMIZE))
MS\Internal\AutomationProxies\Misc.cs (5)
738return (ProxyGetGUIThreadInfo(0, out gui) && (IsBitSet(gui.dwFlags, NativeMethods.GUI_INMENUMODE))); 770return IsBitSet(exStyle, NativeMethods.WS_EX_LAYOUTRTL) || IsBitSet(exStyle, NativeMethods.WS_EX_RTLREADING); 775return IsBitSet(GetWindowExStyle(hwnd), NativeMethods.WS_EX_LAYOUTRTL); 780return IsBitSet(GetWindowExStyle(hwnd), NativeMethods.WS_EX_RTLREADING);
MS\Internal\AutomationProxies\NonClientArea.cs (4)
508if (Misc.IsBitSet(style, NativeMethods.WS_VSCROLL) && Misc.IsBitSet(style, NativeMethods.WS_HSCROLL)) 530if (!Misc.IsBitSet(style, NativeMethods.WS_CHILD)) 748if (Misc.IsBitSet(style, NativeMethods.WS_CHILD))
MS\Internal\AutomationProxies\ProxySimple.cs (1)
289if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_TABSTOP))
MS\Internal\AutomationProxies\WindowsButton.cs (4)
192if (Misc.IsBitSet(state, NativeMethods.BST_PUSHED) 605if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_CHILD)) 645if (Misc.IsBitSet(state, NativeMethods.BST_CHECKED)) 649else if (Misc.IsBitSet(state, NativeMethods.BST_INDETERMINATE))
MS\Internal\AutomationProxies\WindowsComboBox.cs (1)
765if (WindowsComboBox.GetComboInfo(hwnd, ref cbInfo) && Misc.IsBitSet(NativeMethods.STATE_SYSTEM_PRESSED, cbInfo.stateButton))
MS\Internal\AutomationProxies\WindowsContainer.cs (5)
128return Misc.IsBitSet(style, NativeMethods.WS_CAPTION) || 129Misc.IsBitSet(style, NativeMethods.WS_POPUP); 137return Misc.IsBitSet(style, NativeMethods.DS_CONTROL) && 138Misc.IsBitSet(style, NativeMethods.WS_CHILD) && 139Misc.IsBitSet(exstyle, NativeMethods.WS_EX_CONTROLPARENT);
MS\Internal\AutomationProxies\WindowsEditBox.cs (7)
270if (Misc.IsBitSet(styles, NativeMethods.ES_READONLY)) 276if (Misc.IsBitSet(styles, NativeMethods.ES_NUMBER)) 496if (Misc.IsBitSet(style, NativeMethods.ES_PASSWORD)) 500else if (Misc.IsBitSet(style, NativeMethods.ES_MULTILINE)) 504else if (Misc.IsBitSet(style, NativeMethods.ES_AUTOHSCROLL)) 672return (!SafeNativeMethods.IsWindowEnabled(WindowHandle) || Misc.IsBitSet(WindowStyle, NativeMethods.ES_READONLY)); 702if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_VSCROLL))
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (3)
728if (Misc.IsBitSet(style, NativeMethods.ES_CENTER)) 732else if (Misc.IsBitSet(style, NativeMethods.ES_RIGHT)) 745return Misc.IsBitSet(style, NativeMethods.ES_UPPERCASE) ? CapStyle.AllCap : CapStyle.None;
MS\Internal\AutomationProxies\WindowsHyperlink.cs (1)
239if (Misc.IsBitSet(_linkItem.state, NativeMethods.LIS_FOCUSED))
MS\Internal\AutomationProxies\WindowsListBox.cs (3)
73if (Misc.IsBitSet(style, NativeMethods.LBS_COMBOBOX)) 524if (Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.LBS_COMBOBOX)) 1147if (Misc.IsBitSet(listBoxStyle, NativeMethods.LBS_NOTIFY))
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\WindowsRebar.cs (1)
411if (Misc.IsBitSet(Misc.GetWindowStyle(hwnd), (int)CommonControlStyles.CCS_VERT))
MS\Internal\AutomationProxies\WindowsRichEdit.cs (3)
168if (Misc.IsBitSet(WindowStyle, NativeMethods.ES_READONLY)) 174if (Misc.IsBitSet(WindowStyle, NativeMethods.ES_NUMBER) && !WindowsFormsHelper.IsWindowsFormsControl(_hwnd)) 461Misc.IsBitSet(WindowStyle, NativeMethods.ES_READONLY));
MS\Internal\AutomationProxies\WindowsScroll.cs (6)
114if ((sbFlag == NativeMethods.SB_HORZ && !Misc.IsBitSet(style, NativeMethods.WS_HSCROLL)) || 115(sbFlag == NativeMethods.SB_VERT && !Misc.IsBitSet(style, NativeMethods.WS_VSCROLL))) 134!Misc.IsBitSet(sbi.scrollBarInfo, NativeMethods.STATE_SYSTEM_UNAVAILABLE); 159bool hasScrollableStyle = Misc.IsBitSet(style, NativeMethods.WS_HSCROLL) || Misc.IsBitSet(style, NativeMethods.WS_VSCROLL); 166hasScrollableStyle = Misc.IsBitSet(style, NativeMethods.ES_MULTILINE);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (4)
415return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.WS_VSCROLL); 420return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.WS_HSCROLL); 426return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.SBS_VERT); 743return !Misc.IsBitSet(sbi.scrollBarInfo, NativeMethods.STATE_SYSTEM_UNAVAILABLE);
MS\Internal\AutomationProxies\WindowsSlider.cs (1)
256return (Misc.IsBitSet(WindowStyle, NativeMethods.TBS_VERT));
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
833return Misc.IsBitSet(style, SBARS_SIZEGRIP) || WindowsGrip.IsGripPresent(hwnd, true);
MS\Internal\AutomationProxies\WindowsSysHeader.cs (4)
196return Misc.IsBitSet(WindowStyle, NativeMethods.HDS_VERT) ? OrientationType.Vertical : OrientationType.Horizontal; 295return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.HDS_HIDDEN); 654return (Misc.IsBitSet(WindowStyle, NativeMethods.HDS_BUTTONS)); 660return (Misc.IsBitSet(WindowStyle, NativeMethods.HDS_FILTERBAR));
MS\Internal\AutomationProxies\WindowsTab.cs (9)
444return !Misc.IsBitSet(WindowStyle, NativeMethods.TCS_BUTTONS); 787return Misc.IsBitSet(style, NativeMethods.TCS_MULTILINE) && 788(Misc.IsBitSet(style, NativeMethods.TCS_RIGHT) || 789Misc.IsBitSet(style, NativeMethods.TCS_VERTICAL)); 867return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), (NativeMethods.TCS_BUTTONS | NativeMethods.TCS_MULTISELECT)); 999if (Misc.IsBitSet(WindowStyle, NativeMethods.TCS_FOCUSNEVER)) 1153else if (Misc.IsBitSet(WindowStyle, NativeMethods.TCS_BUTTONS)) 1187return Misc.IsBitSet(TCItem.dwState, NativeMethods.TCIS_BUTTONPRESSED); 1294if (Misc.IsBitSet(WindowStyle, (NativeMethods.TCS_BUTTONS | NativeMethods.TCS_FOCUSNEVER)))
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))
MS\Internal\AutomationProxies\WindowsToolbar.cs (4)
379if (Misc.IsBitSet(buttonStyle, NativeMethods.BTNS_SEP)) 381else if (Misc.IsBitSet(buttonStyle, NativeMethods.BTNS_CHECK)) 390else if (Misc.IsBitSet(buttonStyle, NativeMethods.BTNS_DROPDOWN) 391&& Misc.IsBitSet(exStyle, NativeMethods.TBSTYLE_EX_DRAWDDARROWS))
MS\Internal\AutomationProxies\WindowsTooltip.cs (4)
269if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_MINIMIZE)) 278if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_MAXIMIZE)) 313if (Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.WS_MINIMIZE)) 319if (Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.WS_MAXIMIZE))
MS\Internal\AutomationProxies\WindowsTreeView.cs (7)
425return (Misc.IsBitSet(expanded, NativeMethods.TVIS_EXPANDED)); 1288return Misc.IsBitSet(selected, NativeMethods.TVIS_SELECTED); 1402state = Misc.IsBitSet((int)stateMSAA, (int)AccessibleState.Checked) ? WindowsTreeView.CheckState.Checked : WindowsTreeView.CheckState.Unchecked; 1450state = Misc.IsBitSet((int)stateMSAA, (int)AccessibleState.Checked) ? WindowsTreeView.CheckState.Checked : WindowsTreeView.CheckState.Unchecked; 1479return Misc.IsBitSet(WindowStyle, NativeMethods.TVS_EDITLABELS); 1487if (Misc.IsBitSet(selected, NativeMethods.TVIS_SELECTED)) 1499bool isCheckbox = Misc.IsBitSet(WindowStyle, NativeMethods.TVS_CHECKBOXES);
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
637return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.UDS_HORZ);