C# Class AdvancedLauncher.Tools.Interop.RedirectedHwndHost

Inheritance: System.Windows.FrameworkElement, IDisposable, IKeyboardInputSink
Datei anzeigen Open project: GoldRenard/DMOAdvancedLauncher Class Usage Examples

Public Properties

Property Type Description
CurrentHwndSourceProperty System.Windows.DependencyProperty
CurrentHwndSourcePropertyKey System.Windows.DependencyPropertyKey
InputRedirectionPeriodProperty System.Windows.DependencyProperty
IsInputRedirectionEnabledProperty System.Windows.DependencyProperty
IsOutputRedirectionEnabledProperty System.Windows.DependencyProperty
OutputRedirectionPeriodProperty System.Windows.DependencyProperty
RedirectionVisibilityProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
GetInputSyncPoint POINT?
IKeyboardInputSink IKeyboardInputSite
IKeyboardInputSink bool
IKeyboardInputSink bool
IKeyboardInputSink bool
Initialize void
OnInputRedirectionPeriodChanged void
OnIsInputRedirectionEnabledChanged void
OnIsOutputRedirectionEnabledChanged void
OnLoaded void
OnOutputRedirectionPeriodChanged void
OnRedirectionVisibilityChanged void
RedirectedHwndHost System
UpdateInputRedirection void
UpdateOutputRedirection void
UpdateRedirectedWindowSettings void
VerifyNotDisposed void

Public Methods

Method Description
Dispose ( ) : void

Protected Methods

Method Description
BuildWindowCore ( HWND hwndParent ) : HWND

Creates the hosted child window.

Derived types override the BuildWindowCore virtual method to create the child window. The child window is parented to a seperate top-level window for the purposes of redirection. The SafeWindowHandle type controls the lifetime of the child window. It will be disposed when the RedirectedHwndHost is disposed, or when the SafeWindowHandle is finalized. Set the SafeWindowHandle.DestroyWindowOnRelease property to true if you want the window destroyed automatically.

Dispose ( bool disposing ) : void
HasFocusWithinCore ( ) : bool
OnCurrentHwndSourceChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnMnemonicCore ( System.Windows.Interop.MSG &msg, ModifierKeys modifiers ) : bool
OnRender ( System drawingContext ) : void
OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void
RegisterKeyboardInputSinkCore ( IKeyboardInputSink sink ) : IKeyboardInputSite
TabIntoCore ( System.Windows.Input.TraversalRequest request ) : bool
TranslateAcceleratorCore ( System.Windows.Interop.MSG &msg, ModifierKeys modifiers ) : bool
TranslateCharCore ( System.Windows.Interop.MSG &msg, ModifierKeys modifiers ) : bool

Private Methods

Method Description
GetInputSyncPoint ( int xScreen, int yScreen ) : POINT?

Return the point to sync the window to. The point is in the coordinate space of the image, which is the same as the client coordinate space of the hosted window. This function returns null if the input should not be synchronized for this redirected window.

IKeyboardInputSink ( IKeyboardInputSink sink ) : IKeyboardInputSite
IKeyboardInputSink ( ) : bool
IKeyboardInputSink ( System.Windows.Interop.MSG &msg, ModifierKeys modifiers ) : bool
IKeyboardInputSink ( System.Windows.Input.TraversalRequest request ) : bool
Initialize ( ) : void
OnInputRedirectionPeriodChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsInputRedirectionEnabledChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsOutputRedirectionEnabledChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnLoaded ( object sender, RoutedEventArgs e ) : void
OnOutputRedirectionPeriodChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnRedirectionVisibilityChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
RedirectedHwndHost ( ) : System
UpdateInputRedirection ( ) : void
UpdateOutputRedirection ( ) : void
UpdateRedirectedWindowSettings ( RedirectionVisibility visibility, bool isMouseOver ) : void
VerifyNotDisposed ( ) : void

Method Details

BuildWindowCore() protected method

Creates the hosted child window.
Derived types override the BuildWindowCore virtual method to create the child window. The child window is parented to a seperate top-level window for the purposes of redirection. The SafeWindowHandle type controls the lifetime of the child window. It will be disposed when the RedirectedHwndHost is disposed, or when the SafeWindowHandle is finalized. Set the SafeWindowHandle.DestroyWindowOnRelease property to true if you want the window destroyed automatically.
protected BuildWindowCore ( HWND hwndParent ) : HWND
hwndParent AdvancedLauncher.Tools.Win32.User32.HWND
return AdvancedLauncher.Tools.Win32.User32.HWND

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

HasFocusWithinCore() protected method

protected HasFocusWithinCore ( ) : bool
return bool

OnCurrentHwndSourceChanged() protected method

protected OnCurrentHwndSourceChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs
return void

OnMnemonicCore() protected method

protected OnMnemonicCore ( System.Windows.Interop.MSG &msg, ModifierKeys modifiers ) : bool
msg System.Windows.Interop.MSG
modifiers ModifierKeys
return bool

OnRender() protected method

protected OnRender ( System drawingContext ) : void
drawingContext System
return void

OnRenderSizeChanged() protected method

protected OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void
sizeInfo System.Windows.SizeChangedInfo
return void

RegisterKeyboardInputSinkCore() protected method

protected RegisterKeyboardInputSinkCore ( IKeyboardInputSink sink ) : IKeyboardInputSite
sink IKeyboardInputSink
return IKeyboardInputSite

TabIntoCore() protected method

protected TabIntoCore ( System.Windows.Input.TraversalRequest request ) : bool
request System.Windows.Input.TraversalRequest
return bool

TranslateAcceleratorCore() protected method

protected TranslateAcceleratorCore ( System.Windows.Interop.MSG &msg, ModifierKeys modifiers ) : bool
msg System.Windows.Interop.MSG
modifiers ModifierKeys
return bool

TranslateCharCore() protected method

protected TranslateCharCore ( System.Windows.Interop.MSG &msg, ModifierKeys modifiers ) : bool
msg System.Windows.Interop.MSG
modifiers ModifierKeys
return bool

Property Details

CurrentHwndSourceProperty public_oe static_oe property

public static DependencyProperty,System.Windows CurrentHwndSourceProperty
return System.Windows.DependencyProperty

CurrentHwndSourcePropertyKey public_oe static_oe property

public static DependencyPropertyKey,System.Windows CurrentHwndSourcePropertyKey
return System.Windows.DependencyPropertyKey

InputRedirectionPeriodProperty public_oe static_oe property

public static DependencyProperty,System.Windows InputRedirectionPeriodProperty
return System.Windows.DependencyProperty

IsInputRedirectionEnabledProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsInputRedirectionEnabledProperty
return System.Windows.DependencyProperty

IsOutputRedirectionEnabledProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsOutputRedirectionEnabledProperty
return System.Windows.DependencyProperty

OutputRedirectionPeriodProperty public_oe static_oe property

public static DependencyProperty,System.Windows OutputRedirectionPeriodProperty
return System.Windows.DependencyProperty

RedirectionVisibilityProperty public_oe static_oe property

public static DependencyProperty,System.Windows RedirectionVisibilityProperty
return System.Windows.DependencyProperty