IWpfKeyboardTrackingService::BeginTrackingKeyboard Method (IntPtr, IList<UInt32>^)

 

Starts tracking the keyboard.

Namespace:   Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

void BeginTrackingKeyboard(
	IntPtr handle,
	IList<unsigned int>^ messagesToCapture
)

Parameters

handle
Type: System::IntPtr

A valid Win32 window handle (HWND) to which messages should be redirected

messagesToCapture
Type: System.Collections.Generic::IList<UInt32>^

A list of Win32 messages to redirect to the specified window handle

After this method has been called, all keyboard events will be routed to WPF first, before the host application (for example, Visual Studio) sees them.

Return to top
Show: