System.Windows.Forms.XplatUICarbon.SetFocus C# (CSharp) Method

SetFocus() private method

private SetFocus ( IntPtr handle ) : void
handle System.IntPtr
return void
		internal override void SetFocus(IntPtr handle) {
			if (FocusWindow != IntPtr.Zero) {
				PostMessage(FocusWindow, Msg.WM_KILLFOCUS, handle, IntPtr.Zero);
			}
			PostMessage(handle, Msg.WM_SETFOCUS, FocusWindow, IntPtr.Zero);
			FocusWindow = handle;
		}
XplatUICarbon