@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm @cemsdn=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdkr/html/wcesdkr$$$.asp Summary: This function sets the mouse or style capture to a specified window that belongs to the current thread. (From MSDN) !!!!C# Signature: [DllImport("coredll.dll")] static extern IntPtr SetCapture(IntPtr hWnd); !!!!VB .NET Signature: Declare Function SetCapture Lib "coredll.dll" (ByVal hWnd As IntPtr) As IntPtr !!!!User-Defined Types: None. !!!!Notes: None. !!!!Tips & Tricks: You can use ""SetCapture"" in conjunction with ""GetCapture"" to obtain the window handle of a Control. See the sample code below. !!!!Sample Code: public IntPtr GetHWnd(Control ctrl) { IntPtr hOldWnd = GetCapture(); ctrl.Capture = true; IntPtr hWnd = GetCapture(); ctrl.Capture = false; SetCapture(hOldWnd); return hWnd; } !!!!Alternative Managed API: None Documentation: SetCapture@cemsdn on MSDN
Edit coredll.SetCapture
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.