124 references to SafeNativeMethods
UIAutomationClientSideProviders (124)
MS\Internal\AutomationProxies\ClickablePoint.cs (1)
233
if (!
SafeNativeMethods
.IsWindowVisible(hwnd))
MS\Internal\AutomationProxies\EventManager.cs (1)
146
bool fIsReadOnly =
SafeNativeMethods
.IsWindowEnabled(hwnd);
MS\Internal\AutomationProxies\Input.cs (1)
131
ki.union.keyboardInput.wScan = (short)
SafeNativeMethods
.MapVirtualKey(ki.union.keyboardInput.wVk, 0);
MS\Internal\AutomationProxies\Misc.cs (7)
746
if (!
SafeNativeMethods
.IsWindowEnabled(hwnd))
777
bool result =
SafeNativeMethods
.IntersectRect(ref rcDest, ref rc1, ref rc2);
1444
int result =
SafeNativeMethods
.RegisterWindowMessage(msg);
1492
if (!
SafeNativeMethods
.IsWindowVisible(hwnd) || !
SafeNativeMethods
.IsWindowEnabled(hwnd))
1718
bool result =
SafeNativeMethods
.UnionRect(out rcDst, ref rc1, ref rc2);
1841
IntPtr hwndShell =
SafeNativeMethods
.GetShellWindow();
MS\Internal\AutomationProxies\MSAANativeProvider.cs (5)
614
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
628
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
642
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
684
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1190
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
227
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\ProxySimple.cs (2)
273
if (
SafeNativeMethods
.IsWindowVisible(_hwnd) && (bool)GetElementProperty(AutomationElement.IsEnabledProperty))
528
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsButton.cs (2)
263
return
SafeNativeMethods
.IsWindowVisible(_hwnd);
461
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsComboBox.cs (3)
263
if (
SafeNativeMethods
.IsWindowVisible(cbInfo.hwndList))
372
if (GetComboInfo(_hwnd, ref cbInfo) &&
SafeNativeMethods
.IsWindowVisible(cbInfo.hwndItem))
410
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsContainer.cs (2)
146
if (!
SafeNativeMethods
.IsWindowVisible(hwnd))
180
if (hwndTab == IntPtr.Zero || !
SafeNativeMethods
.IsWindowVisible(hwndTab))
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
671
return (!
SafeNativeMethods
.IsWindowEnabled(WindowHandle) || Misc.IsBitSet(WindowStyle, NativeMethods.ES_READONLY));
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (2)
755
return
SafeNativeMethods
.GetSysColor(NativeMethods.COLOR_WINDOW);
790
return
SafeNativeMethods
.GetSysColor(NativeMethods.COLOR_WINDOWTEXT);
MS\Internal\AutomationProxies\WindowsFormsLinkLabel.cs (2)
108
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
113
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsHyperlink.cs (2)
422
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
427
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsIPAddress.cs (3)
116
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
362
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
401
return !
SafeNativeMethods
.IsWindowEnabled(_hwnd);
MS\Internal\AutomationProxies\WindowsListBox.cs (8)
170
return IsParentedByCombo() ||
SafeNativeMethods
.IsWindowVisible(_hwnd);
179
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
761
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
818
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
870
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
921
if (_listBox._parentedByCombo && !
SafeNativeMethods
.IsWindowVisible(_hwnd))
943
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
947
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsListView.cs (9)
495
if (hwndHeader != IntPtr.Zero &&
SafeNativeMethods
.IsWindowVisible (hwndHeader))
524
if (hwndHeader != IntPtr.Zero &&
SafeNativeMethods
.IsWindowVisible (hwndHeader))
603
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
614
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
789
if (hwndHeader != IntPtr.Zero &&
SafeNativeMethods
.IsWindowVisible (hwndHeader))
915
return
SafeNativeMethods
.IsWindowVisible(hwndHeader);
1164
if (_groupsCollection.Contains (hwnd) && !
SafeNativeMethods
.IsWindowVisible (hwnd) && !
SafeNativeMethods
.IsWindowEnabled (hwnd))
1831
if (hwndHeader != IntPtr.Zero &&
SafeNativeMethods
.IsWindowVisible (hwndHeader))
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (1)
404
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsListViewItem.cs (7)
384
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
409
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
447
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
516
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
545
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
657
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
965
int scanCode =
SafeNativeMethods
.MapVirtualKey (NativeMethods.VK_RETURN, 0);
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (1)
239
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsListViewScroll.cs (1)
47
if (!
SafeNativeMethods
.IsWindowEnabled (_hwnd))
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (2)
217
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
327
if (
SafeNativeMethods
.IsWindowVisible (hwndHeader))
MS\Internal\AutomationProxies\WindowsMenu.cs (24)
236
if (!
SafeNativeMethods
.IsWindowVisible(hwndPopup))
617
if (
SafeNativeMethods
.IsWindowVisible (hwndPossibleParent))
645
if (
SafeNativeMethods
.IsWindowVisible (hwndSubMenu))
714
if (
SafeNativeMethods
.IsWindowVisible (hwnd))
936
if (!
SafeNativeMethods
.IsWindowVisible(hwndPopup))
973
if (
SafeNativeMethods
.IsWindowVisible (parentInfo._hwndParent))
1213
if (!
SafeNativeMethods
.IsWindowVisible (_hwnd) || _type == MenuItemType.Spacer)
1425
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd) || _type == MenuItemType.Spacer)
1503
UInt32 dwTicks =
SafeNativeMethods
.GetTickCount();
1508
(dwDelta = SubtractTicks(
SafeNativeMethods
.GetTickCount(), dwTicks)) <= WindowsMenu.TimeOut)
1978
return (hwndSubMenu == IntPtr.Zero || !
SafeNativeMethods
.IsWindowVisible(hwndSubMenu));
2019
if (!
SafeNativeMethods
.IsWindowVisible (_hwnd))
2064
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
2097
if (
SafeNativeMethods
.IsWindowVisible (hwndSubMenu))
2160
UInt32 dwTicks =
SafeNativeMethods
.GetTickCount (), dwDelta = 0;
2176
|| (dwDelta = SubtractTicks (
SafeNativeMethods
.GetTickCount (), dwTicks)) >= WindowsMenu.TimeOut)
2187
UInt32 dwTicks =
SafeNativeMethods
.GetTickCount();
2205
} while (SubtractTicks(
SafeNativeMethods
.GetTickCount(), dwTicks) <= WindowsMenu.TimeOut);
2226
if (!
SafeNativeMethods
.IsWindowVisible (_hwnd))
2262
UInt32 dwTicks =
SafeNativeMethods
.GetTickCount();
2266
while (Misc.InMenuMode() != fInMenuMode && (dwDelta = SubtractTicks(
SafeNativeMethods
.GetTickCount(), dwTicks)) < WindowsMenu.TimeOut)
2327
UInt32 dwTicks =
SafeNativeMethods
.GetTickCount ();
2332
(dwDelta = SubtractTicks (
SafeNativeMethods
.GetTickCount (), dwTicks)) <= WindowsMenu.TimeOut)
2643
return
SafeNativeMethods
.IsWindowEnabled(_hwnd);
MS\Internal\AutomationProxies\WindowsRebar.cs (1)
374
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsRichEdit.cs (2)
162
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
459
return (!
SafeNativeMethods
.IsWindowEnabled(WindowHandle) ||
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
629
return
SafeNativeMethods
.GetSysColor(NativeMethods.COLOR_WINDOW);
770
return
SafeNativeMethods
.GetSysColor(NativeMethods.COLOR_WINDOWTEXT);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (3)
190
return
SafeNativeMethods
.IsWindowVisible(_hwnd);
199
if (
SafeNativeMethods
.IsWindowVisible(_hwnd) &&
616
if (!
SafeNativeMethods
.IsWindowEnabled (_hwnd))
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (2)
111
return
SafeNativeMethods
.IsWindowVisible(_hwnd);
147
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsSlider.cs (2)
156
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
430
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsSysHeader.cs (4)
463
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
637
if (!
SafeNativeMethods
.IsWindowEnabled (_hwnd) || !
SafeNativeMethods
.IsWindowVisible (_hwnd) || HeaderIsHidden (_hwnd))
708
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsTab.cs (9)
448
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
472
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1035
if (hwndChild != IntPtr.Zero &&
SafeNativeMethods
.IsWindowVisible(hwndChild))
1058
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1078
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1121
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1203
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1282
return (
SafeNativeMethods
.IsWindowEnabled(_hwnd) &&
SafeNativeMethods
.IsWindowVisible(_hwnd));
MS\Internal\AutomationProxies\WindowsTitleBar.cs (1)
402
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsToolbar.cs (1)
642
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd)
MS\Internal\AutomationProxies\WindowsTreeView.cs (7)
957
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
988
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1023
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1073
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1102
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1144
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1184
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsUpDown.cs (2)
203
if (!
SafeNativeMethods
.IsWindowEnabled (_hwnd))
508
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))