Jump to content

SpIsWindowEnabled

From EDM2
Revision as of 23:31, 26 February 2017 by Ak120 (talk | contribs) (Ak120 moved page OS2 API:SPUTILS:spIsWindowEnabled to SpIsWindowEnabled)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function returns the state (enabled/disabled) of a window.

Syntax: isenabled = spIsWindowEnabled ( hwnd )

Parameter: hwnd – Window handle.

Returns:

  • True (1) – Window is enabled.
  • False (0) – Window is disabled.

Example code: (part of spIsWindow example code)

/* wininfo.cmd (spUtils Example Code) */
[...]
IF spIsWindowEnabled(ARG(2)) THEN stat='enabled'; ELSE stat='disabled'
[...]