Jump to content

WinIsPhysInputEnabled

From EDM2
Revision as of 01:41, 9 April 2025 by Martini (talk | contribs) (Created page with "This function returns the state (enabled/disabled) of physical input. ==Syntax== WinIsPhysInputEnabled(hwndDeskTop) ==Parameters== ;hwndDeskTop (HWND) - Input: Desktop-window handle. :HWND_DESKTOP: The desktop-window handle. ==Returns== ;rc (BOOL) - Returns: Enabled-state indicator. :;TRUE: Input is enabled. :;FALSE: Input is disabled. ==Remarks== None. ==Errors== None. ==Example Code== <PRE> #define INCL_WININPUT Or use INCL_WIN, INCL_PM,: #include <os2....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function returns the state (enabled/disabled) of physical input.

Syntax

WinIsPhysInputEnabled(hwndDeskTop)

Parameters

hwndDeskTop (HWND) - Input
Desktop-window handle.
HWND_DESKTOP: The desktop-window handle.

Returns

rc (BOOL) - Returns
Enabled-state indicator.
TRUE
Input is enabled.
FALSE
Input is disabled.

Remarks

None.

Errors

None.

Example Code

#define INCL_WININPUT /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HWND  hwndDeskTop; /* Desktop-window handle. */
BOOL  rc;          /* Enabled-state indicator. */

rc = WinIsPhysInputEnabled(hwndDeskTop);

This example uses WinIsPhysInputEnabled to determine if physical input is enabled; if it is not, then WinEnablePhysInput is called to enable it.

#define INCL_WININPUT   /* Window Input Functions  */
#include <os2.h>

if (!WinIsPhysInputEnabled(HWND_DESKTOP))
  /* Enable queuing of physical input */
  WinEnablePhysInput(HWND_DESKTOP, TRUE);

Related Functions