132 references to IsBitSet
UIAutomationClientSideProviders (132)
MS\Internal\AutomationProxies\Accessible.cs (1)
698return Misc.IsBitSet((int)state, (int)testState);
MS\Internal\AutomationProxies\ClickablePoint.cs (1)
84if (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)
731return (ProxyGetGUIThreadInfo(0, out gui) && (IsBitSet(gui.dwFlags, NativeMethods.GUI_INMENUMODE))); 763return IsBitSet(exStyle, NativeMethods.WS_EX_LAYOUTRTL) || IsBitSet(exStyle, NativeMethods.WS_EX_RTLREADING); 768return IsBitSet(GetWindowExStyle(hwnd), NativeMethods.WS_EX_LAYOUTRTL); 773return IsBitSet(GetWindowExStyle(hwnd), NativeMethods.WS_EX_RTLREADING);
MS\Internal\AutomationProxies\NonClientArea.cs (4)
502if (Misc.IsBitSet(style, NativeMethods.WS_VSCROLL) && Misc.IsBitSet(style, NativeMethods.WS_HSCROLL)) 524if (!Misc.IsBitSet(style, NativeMethods.WS_CHILD)) 730if (Misc.IsBitSet(style, NativeMethods.WS_CHILD))
MS\Internal\AutomationProxies\ProxySimple.cs (1)
283if (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)
725if (Misc.IsBitSet(style, NativeMethods.ES_CENTER)) 729else if (Misc.IsBitSet(style, NativeMethods.ES_RIGHT)) 742return 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)) 518if (Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.LBS_COMBOBOX)) 1138if (Misc.IsBitSet(listBoxStyle, NativeMethods.LBS_NOTIFY))
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\WindowsRebar.cs (1)
413if (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)
412return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.WS_VSCROLL); 417return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.WS_HSCROLL); 423return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.SBS_VERT); 744return !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)
834return Misc.IsBitSet(style, SBARS_SIZEGRIP) || WindowsGrip.IsGripPresent(hwnd, true);
MS\Internal\AutomationProxies\WindowsSysHeader.cs (4)
194return Misc.IsBitSet(WindowStyle, NativeMethods.HDS_VERT) ? OrientationType.Vertical : OrientationType.Horizontal; 293return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.HDS_HIDDEN); 649return (Misc.IsBitSet(WindowStyle, NativeMethods.HDS_BUTTONS)); 655return (Misc.IsBitSet(WindowStyle, NativeMethods.HDS_FILTERBAR));
MS\Internal\AutomationProxies\WindowsTab.cs (9)
442return !Misc.IsBitSet(WindowStyle, NativeMethods.TCS_BUTTONS); 786return Misc.IsBitSet(style, NativeMethods.TCS_MULTILINE) && 787(Misc.IsBitSet(style, NativeMethods.TCS_RIGHT) || 788Misc.IsBitSet(style, NativeMethods.TCS_VERTICAL)); 866return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), (NativeMethods.TCS_BUTTONS | NativeMethods.TCS_MULTISELECT)); 998if (Misc.IsBitSet(WindowStyle, NativeMethods.TCS_FOCUSNEVER)) 1152else if (Misc.IsBitSet(WindowStyle, NativeMethods.TCS_BUTTONS)) 1186return Misc.IsBitSet(TCItem.dwState, NativeMethods.TCIS_BUTTONPRESSED); 1293if (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)
376if (Misc.IsBitSet(buttonStyle, NativeMethods.BTNS_SEP)) 378else if (Misc.IsBitSet(buttonStyle, NativeMethods.BTNS_CHECK)) 387else if (Misc.IsBitSet(buttonStyle, NativeMethods.BTNS_DROPDOWN) 388&& Misc.IsBitSet(exStyle, NativeMethods.TBSTYLE_EX_DRAWDDARROWS))
MS\Internal\AutomationProxies\WindowsTooltip.cs (4)
266if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_MINIMIZE)) 275if (Misc.IsBitSet(WindowStyle, NativeMethods.WS_MAXIMIZE)) 310if (Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.WS_MINIMIZE)) 316if (Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.WS_MAXIMIZE))
MS\Internal\AutomationProxies\WindowsTreeView.cs (7)
422return (Misc.IsBitSet(expanded, NativeMethods.TVIS_EXPANDED)); 1285return Misc.IsBitSet(selected, NativeMethods.TVIS_SELECTED); 1399state = Misc.IsBitSet((int)stateMSAA, (int)AccessibleState.Checked) ? WindowsTreeView.CheckState.Checked : WindowsTreeView.CheckState.Unchecked; 1447state = Misc.IsBitSet((int)stateMSAA, (int)AccessibleState.Checked) ? WindowsTreeView.CheckState.Checked : WindowsTreeView.CheckState.Unchecked; 1476return Misc.IsBitSet(WindowStyle, NativeMethods.TVS_EDITLABELS); 1484if (Misc.IsBitSet(selected, NativeMethods.TVIS_SELECTED)) 1496bool isCheckbox = Misc.IsBitSet(WindowStyle, NativeMethods.TVS_CHECKBOXES);
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
634return Misc.IsBitSet(Misc.GetWindowStyle(hwnd), NativeMethods.UDS_HORZ);