Jump to content

SpSetFocus

From EDM2
Revision as of 14:38, 31 March 2015 by Martini (talk | contribs) (Created page with "This function sets the focus window. '''Syntax:''' success = spSetFocus ( [ [ hwndDesktop ] , ] hwnd ) '''Parameter:''' * hwndDesktop – Desktop window handle. If omitted ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function sets the focus window.

Syntax: success = spSetFocus ( [ [ hwndDesktop ] , ] hwnd )

Parameter:

  • hwndDesktop – Desktop window handle. If omitted the default desktop handle (HWND_DESKTOP) will be used.
  • hwnd – Window handle to receive the focus.

Returns:

True (1) – Successful completion.
False (0) – Error occurred.