124 references to SafeNativeMethods
UIAutomationClientsideProviders (124)
MS\Internal\AutomationProxies\ClickablePoint.cs (1)
237
if (!
SafeNativeMethods
.IsWindowVisible(hwnd))
MS\Internal\AutomationProxies\EventManager.cs (1)
160
bool fIsReadOnly =
SafeNativeMethods
.IsWindowEnabled(hwnd);
MS\Internal\AutomationProxies\Input.cs (1)
137
ki.union.keyboardInput.wScan = (short)
SafeNativeMethods
.MapVirtualKey(ki.union.keyboardInput.wVk, 0);
MS\Internal\AutomationProxies\Misc.cs (7)
766
if (!
SafeNativeMethods
.IsWindowEnabled(hwnd))
797
bool result =
SafeNativeMethods
.IntersectRect(ref rcDest, ref rc1, ref rc2);
1467
int result =
SafeNativeMethods
.RegisterWindowMessage(msg);
1518
if (!
SafeNativeMethods
.IsWindowVisible(hwnd) || !
SafeNativeMethods
.IsWindowEnabled(hwnd))
1752
bool result =
SafeNativeMethods
.UnionRect(out rcDst, ref rc1, ref rc2);
1875
IntPtr hwndShell =
SafeNativeMethods
.GetShellWindow();
MS\Internal\AutomationProxies\MSAANativeProvider.cs (5)
640
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
654
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
668
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
710
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1225
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
250
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\ProxySimple.cs (2)
291
if (
SafeNativeMethods
.IsWindowVisible(_hwnd) && (bool)GetElementProperty(AutomationElement.IsEnabledProperty))
546
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsButton.cs (2)
280
return
SafeNativeMethods
.IsWindowVisible(_hwnd);
481
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsComboBox.cs (3)
281
if (
SafeNativeMethods
.IsWindowVisible(cbInfo.hwndList))
394
if (GetComboInfo(_hwnd, ref cbInfo) &&
SafeNativeMethods
.IsWindowVisible(cbInfo.hwndItem))
432
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsContainer.cs (2)
164
if (!
SafeNativeMethods
.IsWindowVisible(hwnd))
198
if (hwndTab == IntPtr.Zero || !
SafeNativeMethods
.IsWindowVisible(hwndTab))
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
737
return (!
SafeNativeMethods
.IsWindowEnabled(WindowHandle) || Misc.IsBitSet(WindowStyle, NativeMethods.ES_READONLY));
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (2)
781
return
SafeNativeMethods
.GetSysColor(NativeMethods.COLOR_WINDOW);
816
return
SafeNativeMethods
.GetSysColor(NativeMethods.COLOR_WINDOWTEXT);
MS\Internal\AutomationProxies\WindowsFormsLinkLabel.cs (2)
133
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
138
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsHyperlink.cs (2)
440
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
445
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsIPAddress.cs (3)
131
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
380
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
419
return !
SafeNativeMethods
.IsWindowEnabled(_hwnd);
MS\Internal\AutomationProxies\WindowsListBox.cs (8)
186
return IsParentedByCombo() ||
SafeNativeMethods
.IsWindowVisible(_hwnd);
195
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
783
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
840
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
892
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
943
if (_listBox._parentedByCombo && !
SafeNativeMethods
.IsWindowVisible(_hwnd))
965
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
969
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsListView.cs (9)
509
if (hwndHeader != IntPtr.Zero &&
SafeNativeMethods
.IsWindowVisible (hwndHeader))
538
if (hwndHeader != IntPtr.Zero &&
SafeNativeMethods
.IsWindowVisible (hwndHeader))
617
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
628
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
803
if (hwndHeader != IntPtr.Zero &&
SafeNativeMethods
.IsWindowVisible (hwndHeader))
930
return
SafeNativeMethods
.IsWindowVisible(hwndHeader);
1179
if (_groupsCollection.Contains (hwnd) && !
SafeNativeMethods
.IsWindowVisible (hwnd) && !
SafeNativeMethods
.IsWindowEnabled (hwnd))
1844
if (hwndHeader != IntPtr.Zero &&
SafeNativeMethods
.IsWindowVisible (hwndHeader))
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (1)
414
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsListViewItem.cs (7)
395
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
420
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
458
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
527
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
556
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
668
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
980
int scanCode =
SafeNativeMethods
.MapVirtualKey (NativeMethods.VK_RETURN, 0);
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (1)
247
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsListViewScroll.cs (1)
59
if (!
SafeNativeMethods
.IsWindowEnabled (_hwnd))
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (2)
226
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
336
if (
SafeNativeMethods
.IsWindowVisible (hwndHeader))
MS\Internal\AutomationProxies\WindowsMenu.cs (24)
253
if (!
SafeNativeMethods
.IsWindowVisible(hwndPopup))
634
if (
SafeNativeMethods
.IsWindowVisible (hwndPossibleParent))
662
if (
SafeNativeMethods
.IsWindowVisible (hwndSubMenu))
731
if (
SafeNativeMethods
.IsWindowVisible (hwnd))
954
if (!
SafeNativeMethods
.IsWindowVisible(hwndPopup))
991
if (
SafeNativeMethods
.IsWindowVisible (parentInfo._hwndParent))
1232
if (!
SafeNativeMethods
.IsWindowVisible (_hwnd) || _type == MenuItemType.Spacer)
1446
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd) || _type == MenuItemType.Spacer)
1524
UInt32 dwTicks =
SafeNativeMethods
.GetTickCount();
1529
(dwDelta = SubtractTicks(
SafeNativeMethods
.GetTickCount(), dwTicks)) <= WindowsMenu.TimeOut)
1999
return (hwndSubMenu == IntPtr.Zero || !
SafeNativeMethods
.IsWindowVisible(hwndSubMenu));
2040
if (!
SafeNativeMethods
.IsWindowVisible (_hwnd))
2085
if (!
SafeNativeMethods
.IsWindowVisible(_hwnd))
2118
if (
SafeNativeMethods
.IsWindowVisible (hwndSubMenu))
2181
UInt32 dwTicks =
SafeNativeMethods
.GetTickCount (), dwDelta = 0;
2197
|| (dwDelta = SubtractTicks (
SafeNativeMethods
.GetTickCount (), dwTicks)) >= WindowsMenu.TimeOut)
2208
UInt32 dwTicks =
SafeNativeMethods
.GetTickCount();
2226
} while (SubtractTicks(
SafeNativeMethods
.GetTickCount(), dwTicks) <= WindowsMenu.TimeOut);
2247
if (!
SafeNativeMethods
.IsWindowVisible (_hwnd))
2283
UInt32 dwTicks =
SafeNativeMethods
.GetTickCount();
2287
while (Misc.InMenuMode() != fInMenuMode && (dwDelta = SubtractTicks(
SafeNativeMethods
.GetTickCount(), dwTicks)) < WindowsMenu.TimeOut)
2348
UInt32 dwTicks =
SafeNativeMethods
.GetTickCount ();
2353
(dwDelta = SubtractTicks (
SafeNativeMethods
.GetTickCount (), dwTicks)) <= WindowsMenu.TimeOut)
2664
return
SafeNativeMethods
.IsWindowEnabled(_hwnd);
MS\Internal\AutomationProxies\WindowsRebar.cs (1)
391
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsRichEdit.cs (2)
179
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
504
return (!
SafeNativeMethods
.IsWindowEnabled(WindowHandle) ||
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
656
return
SafeNativeMethods
.GetSysColor(NativeMethods.COLOR_WINDOW);
797
return
SafeNativeMethods
.GetSysColor(NativeMethods.COLOR_WINDOWTEXT);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (3)
208
return
SafeNativeMethods
.IsWindowVisible(_hwnd);
217
if (
SafeNativeMethods
.IsWindowVisible(_hwnd) &&
633
if (!
SafeNativeMethods
.IsWindowEnabled (_hwnd))
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (2)
121
return
SafeNativeMethods
.IsWindowVisible(_hwnd);
157
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsSlider.cs (2)
173
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
447
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsSysHeader.cs (4)
479
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
656
if (!
SafeNativeMethods
.IsWindowEnabled (_hwnd) || !
SafeNativeMethods
.IsWindowVisible (_hwnd) || HeaderIsHidden (_hwnd))
727
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsTab.cs (9)
455
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
479
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1041
if (hwndChild != IntPtr.Zero &&
SafeNativeMethods
.IsWindowVisible(hwndChild))
1064
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1084
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1127
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1209
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1288
return (
SafeNativeMethods
.IsWindowEnabled(_hwnd) &&
SafeNativeMethods
.IsWindowVisible(_hwnd));
MS\Internal\AutomationProxies\WindowsTitleBar.cs (1)
415
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsToolbar.cs (1)
657
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd)
MS\Internal\AutomationProxies\WindowsTreeView.cs (7)
973
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1004
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1039
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1089
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1118
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1160
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
1200
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsUpDown.cs (2)
224
if (!
SafeNativeMethods
.IsWindowEnabled (_hwnd))
529
if (!
SafeNativeMethods
.IsWindowEnabled(_hwnd))