GetFocus

Syntax

HWND GetFocus( )

This function retrieves the handle of the window that currently owns the input focus.

This function has no parameters.

Return Value

The return value identifies the window that currently owns the focus if the function is successful. Otherwise, it is NULL.