JCL Help:IsWindowResponding

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Determines whether a windows is responding to messages.


Pascal

 function IsWindowResponding(Wnd: THandle; Timeout: Integer): Boolean;


Parameters

Parameters Description
Wnd: THandle Handle to the window which you want to test.
Timeout: Integer Timeout in milliseconds. The function send a bogus message to the window and then waits the specified time out value before returning. If the window responds to the message within the timeout value or Windows itself detects, by some other means, that the specified window is hung, the function may return earlier.


Return Value

If the window is not responding the function returns False, otherwise it returns True.


Description

The IsWindowResponding function determines whether the window specified by the Wnd parameter is still responding to messages. In effect this determines whether the window "is hung" by the user perception. In reality the thread which "owns" the window may not actually be hung but is too busy (in some kind of loop or by a blocking wait operation) to receive messages.


About

Unit

JclSysInfo


Donator

Petr Vones


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page