[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 238

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.


Version 4.0 Generated 2025-05-03 Home