Jump to content

SpIsWindowEnabled: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
Line 15: Line 15:
  [...]
  [...]


[[Category:The OS/2 API Project]]
[[Category:SpUtils]]

Revision as of 23:30, 26 February 2017

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'
[...]