[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'InterfaceBase' (#lcl)

TWidgetSet.SetActiveWindow

Sets focus to the specified window, if the application is on top.

Declaration

Source position: winapih.inc line 237

public function TWidgetSet.SetActiveWindow(

  Handle: HWND

):HWND; virtual;

Arguments

Handle

  

The window handle to activate.

Function result

The handle of the window that lost the focus, zero on failure.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.