124 references to SafeNativeMethods
UIAutomationClientSideProviders (124)
MS\Internal\AutomationProxies\ClickablePoint.cs (1)
233
if (!
SafeNativeMethods
.IsWindowVisible(hwnd))
MS\Internal\AutomationProxies\EventManager.cs (1)
147
bool fIsReadOnly =
SafeNativeMethods
.IsWindowEnabled(hwnd);
MS\Internal\AutomationProxies\Input.cs (1)
134
ki.union.keyboardInput.wScan = (short)
SafeNativeMethods
.MapVirtualKey(ki.union.keyboardInput.wVk, 0);
MS\Internal\AutomationProxies\Misc.cs (7)
747
if (!
SafeNativeMethods
.IsWindowEnabled(hwnd))
778
bool result =
SafeNativeMethods
.IntersectRect(ref rcDest, ref rc1, ref rc2);
1445
int result =
SafeNativeMethods
.RegisterWindowMessage(msg);
1493
if (!
SafeNativeMethods
.IsWindowVisible(hwnd) || !
SafeNativeMethods
.IsWindowEnabled(hwnd))
1719
bool result =
SafeNativeMethods
.UnionRect(out rcDst, ref rc1, ref rc2);
1842
IntPtr hwndShell =
SafeNativeMethods
.GetShellWindow();
MS\Internal\AutomationProxies\MSAANativeProvider.cs (5)
615
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
629
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
643
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
685
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1191
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
229
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\ProxySimple.cs (2)
274
if (
SafeNativeMethods
.IsWindowVisible(_hwnd) && (bool)GetElementProperty(AutomationElement.IsEnabledProperty))
529
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsButton.cs (2)
264
return
SafeNativeMethods
.IsWindowVisible(_hwnd);
465
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsComboBox.cs (3)
264
if (
SafeNativeMethods
.IsWindowVisible(cbInfo.hwndList))
377
if (GetComboInfo(_hwnd, ref cbInfo) &&
SafeNativeMethods
.IsWindowVisible(cbInfo.hwndItem))
415
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsContainer.cs (2)
147
if (!
SafeNativeMethods
.IsWindowVisible(hwnd))
181
if (hwndTab == IntPtr.Zero || !
SafeNativeMethods
.IsWindowVisible(hwndTab))
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
672
return (!
SafeNativeMethods
.IsWindowEnabled(WindowHandle) || Misc.IsBitSet(WindowStyle, NativeMethods.ES_READONLY));
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (2)
756
return
SafeNativeMethods
.GetSysColor(NativeMethods.COLOR_WINDOW);
791
return
SafeNativeMethods
.GetSysColor(NativeMethods.COLOR_WINDOWTEXT);
MS\Internal\AutomationProxies\WindowsFormsLinkLabel.cs (2)
113
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
118
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsHyperlink.cs (2)
427
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
432
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsIPAddress.cs (3)
117
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
363
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
402
return !
SafeNativeMethods
.IsWindowEnabled(_hwnd);
MS\Internal\AutomationProxies\WindowsListBox.cs (8)
174
return IsParentedByCombo() ||
SafeNativeMethods
.IsWindowVisible(_hwnd);
183
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
771
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
828
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
880
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
931
if (_listBox._parentedByCombo && !
SafeNativeMethods
.IsWindowVisible(_hwnd))
953
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
957
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsListView.cs (9)
499
if (hwndHeader != IntPtr.Zero &&
SafeNativeMethods
.IsWindowVisible (hwndHeader))
528
if (hwndHeader != IntPtr.Zero &&
SafeNativeMethods
.IsWindowVisible (hwndHeader))
607
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
618
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
793
if (hwndHeader != IntPtr.Zero &&
SafeNativeMethods
.IsWindowVisible (hwndHeader))
919
return
SafeNativeMethods
.IsWindowVisible(hwndHeader);
1168
if (_groupsCollection.Contains (hwnd) && !
SafeNativeMethods
.IsWindowVisible (hwnd) && !
SafeNativeMethods
.IsWindowEnabled (hwnd))
1837
if (hwndHeader != IntPtr.Zero &&
SafeNativeMethods
.IsWindowVisible (hwndHeader))
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (1)
405
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsListViewItem.cs (7)
385
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
410
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
448
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
517
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
546
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
658
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
966
int scanCode =
SafeNativeMethods
.MapVirtualKey (NativeMethods.VK_RETURN, 0);
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (1)
240
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsListViewScroll.cs (1)
48
if (!
SafeNativeMethods
.IsWindowEnabled (_hwnd))
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (2)
218
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
328
if (
SafeNativeMethods
.IsWindowVisible (hwndHeader))
MS\Internal\AutomationProxies\WindowsMenu.cs (24)
237
if (!
SafeNativeMethods
.IsWindowVisible(hwndPopup))
618
if (
SafeNativeMethods
.IsWindowVisible (hwndPossibleParent))
646
if (
SafeNativeMethods
.IsWindowVisible (hwndSubMenu))
715
if (
SafeNativeMethods
.IsWindowVisible (hwnd))
937
if (!
SafeNativeMethods
.IsWindowVisible(hwndPopup))
974
if (
SafeNativeMethods
.IsWindowVisible (parentInfo._hwndParent))
1214
if (!
SafeNativeMethods
.IsWindowVisible (_hwnd) || _type == MenuItemType.Spacer)
1426
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd) || _type == MenuItemType.Spacer)
1504
UInt32 dwTicks =
SafeNativeMethods
.GetTickCount();
1509
(dwDelta = SubtractTicks(
SafeNativeMethods
.GetTickCount(), dwTicks)) <= WindowsMenu.TimeOut)
1979
return (hwndSubMenu == IntPtr.Zero || !
SafeNativeMethods
.IsWindowVisible(hwndSubMenu));
2020
if (!
SafeNativeMethods
.IsWindowVisible (_hwnd))
2065
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
2098
if (
SafeNativeMethods
.IsWindowVisible (hwndSubMenu))
2161
UInt32 dwTicks =
SafeNativeMethods
.GetTickCount (), dwDelta = 0;
2177
|| (dwDelta = SubtractTicks (
SafeNativeMethods
.GetTickCount (), dwTicks)) >= WindowsMenu.TimeOut)
2188
UInt32 dwTicks =
SafeNativeMethods
.GetTickCount();
2206
} while (SubtractTicks(
SafeNativeMethods
.GetTickCount(), dwTicks) <= WindowsMenu.TimeOut);
2227
if (!
SafeNativeMethods
.IsWindowVisible (_hwnd))
2263
UInt32 dwTicks =
SafeNativeMethods
.GetTickCount();
2267
while (Misc.InMenuMode() != fInMenuMode && (dwDelta = SubtractTicks(
SafeNativeMethods
.GetTickCount(), dwTicks)) < WindowsMenu.TimeOut)
2328
UInt32 dwTicks =
SafeNativeMethods
.GetTickCount ();
2333
(dwDelta = SubtractTicks (
SafeNativeMethods
.GetTickCount (), dwTicks)) <= WindowsMenu.TimeOut)
2644
return
SafeNativeMethods
.IsWindowEnabled(_hwnd);
MS\Internal\AutomationProxies\WindowsRebar.cs (1)
375
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsRichEdit.cs (2)
163
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
460
return (!
SafeNativeMethods
.IsWindowEnabled(WindowHandle) ||
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
630
return
SafeNativeMethods
.GetSysColor(NativeMethods.COLOR_WINDOW);
771
return
SafeNativeMethods
.GetSysColor(NativeMethods.COLOR_WINDOWTEXT);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (3)
194
return
SafeNativeMethods
.IsWindowVisible(_hwnd);
203
if (
SafeNativeMethods
.IsWindowVisible(_hwnd) &&
620
if (!
SafeNativeMethods
.IsWindowEnabled (_hwnd))
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (2)
112
return
SafeNativeMethods
.IsWindowVisible(_hwnd);
148
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsSlider.cs (2)
157
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
431
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsSysHeader.cs (4)
467
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
644
if (!
SafeNativeMethods
.IsWindowEnabled (_hwnd) || !
SafeNativeMethods
.IsWindowVisible (_hwnd) || HeaderIsHidden (_hwnd))
715
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsTab.cs (9)
456
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
480
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1043
if (hwndChild != IntPtr.Zero &&
SafeNativeMethods
.IsWindowVisible(hwndChild))
1066
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1086
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1129
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1211
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1290
return (
SafeNativeMethods
.IsWindowEnabled(_hwnd) &&
SafeNativeMethods
.IsWindowVisible(_hwnd));
MS\Internal\AutomationProxies\WindowsTitleBar.cs (1)
403
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsToolbar.cs (1)
646
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd)
MS\Internal\AutomationProxies\WindowsTreeView.cs (7)
962
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
993
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1028
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1078
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1107
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1149
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1189
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsUpDown.cs (2)
207
if (!
SafeNativeMethods
.IsWindowEnabled (_hwnd))
512
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))