SetFocus function Null safety user32
- int hWnd
Sets the keyboard focus to the specified window. The window must be attached to the calling thread's message queue.
HWND SetFocus(
HWND hWnd
);
Implementation
int SetFocus(int hWnd) {
final _SetFocus = _user32.lookupFunction<IntPtr Function(IntPtr hWnd),
int Function(int hWnd)>('SetFocus');
return _SetFocus(hWnd);
}