|
// Type: System.Windows.Interop.HwndHost
// Assembly: PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// Assembly location: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\PresentationFramework.dll
using System;
using System.Runtime;
using System.Runtime.InteropServices;
using System.Security;
using System.Security.Permissions;
using System.Windows;
using System.Windows.Automation.Peers;
using System.Windows.Input;
namespace System.Windows.Interop
{
[SecurityPermission(SecurityAction.InheritanceDemand, Flags = SecurityPermissionFlag.UnmanagedCode)]
public abstract class HwndHost : FrameworkElement, IDisposable, IWin32Window, IKeyboardInputSink
{
#region Constructors and Destructors
[SecurityCritical]
protected HwndHost();
~HwndHost();
#endregion
#region Public Events
public event HwndSourceHook MessageHook;
#endregion
#region Public Properties
public IntPtr Handle { [SecurityCritical]
get; }
#endregion
#region Public Methods
public void Dispose();
[SecurityCritical]
public void UpdateWindowPos();
#endregion
#region Explicit Interface Methods
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
bool IKeyboardInputSink.HasFocusWithin();
[SecurityCritical]
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
bool IKeyboardInputSink.OnMnemonic(ref MSG msg, ModifierKeys modifiers);
[SecurityCritical]
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
IKeyboardInputSite IKeyboardInputSink.RegisterKeyboardInputSink(IKeyboardInputSink sink);
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
bool IKeyboardInputSink.TabInto(TraversalRequest request);
[SecurityCritical]
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
bool IKeyboardInputSink.TranslateAccelerator(ref MSG msg, ModifierKeys modifiers);
[SecurityCritical]
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
bool IKeyboardInputSink.TranslateChar(ref MSG msg, ModifierKeys modifiers);
#endregion
#region Methods
protected abstract HandleRef BuildWindowCore(HandleRef hwndParent);
protected abstract void DestroyWindowCore(HandleRef hwnd);
[SecurityTreatAsSafe]
[SecurityCritical]
protected virtual void Dispose(bool disposing);
[SecurityTreatAsSafe]
[SecurityCritical]
protected virtual bool HasFocusWithinCore();
[SecurityCritical]
[SecurityTreatAsSafe]
protected override Size MeasureOverride(Size constraint);
protected override AutomationPeer OnCreateAutomationPeer();
[SecurityTreatAsSafe]
[SecurityCritical]
protected override void OnKeyDown(KeyEventArgs e);
[SecurityTreatAsSafe]
[SecurityCritical]
protected override void OnKeyUp(KeyEventArgs e);
[SecurityCritical]
[UIPermission(SecurityAction.LinkDemand, Unrestricted = true)]
protected virtual bool OnMnemonicCore(ref MSG msg, ModifierKeys modifiers);
[SecurityCritical]
protected virtual void OnWindowPositionChanged(Rect rcBoundingBox);
[SecurityCritical]
[UIPermission(SecurityAction.LinkDemand, Unrestricted = true)]
protected virtual IKeyboardInputSite RegisterKeyboardInputSinkCore(IKeyboardInputSink sink);
protected virtual bool TabIntoCore(TraversalRequest request);
[SecurityCritical]
[UIPermission(SecurityAction.LinkDemand, Unrestricted = true)]
protected virtual bool TranslateAcceleratorCore(ref MSG msg, ModifierKeys modifiers);
[SecurityCritical]
[UIPermission(SecurityAction.LinkDemand, Unrestricted = true)]
protected virtual bool TranslateCharCore(ref MSG msg, ModifierKeys modifiers);
[SecurityCritical]
protected virtual IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled);
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.