Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_Input_Library v2.00 Component Reference
|
|
[ TDx_InputDevice::SetCooperativeLevel() ]
[ next: SetDataFormat() ]
[ prev: SendForceFeedbackCommand() ]
public:
virtual bool __fastcall SetCooperativeLevel( HWND pHWnd, dword pFlags );
TDX_INPUTDEVICE::SETCOOPERATIVELEVEL()
[ component method ]
- Description
- Parameters
HWnd
The HWnd parameter defines the window handle being associated with the device.
This is a valid top level window handle belonging to this process.
The associated window must not be destroyed while the device is still active.
Flags
The Flags parameter defines flags indicating the cooperative level being set for the device.
The described effect applies when the flag is set.
DISCL_BACKGROUND
Background access is required.
The device may be acquired anytime, even when its associated window is not active.
This flag or DISCL_FOREGROUND must be set, but not both.
DISCL_EXCLUSIVE
Exclusive access is required.
No other device instance can gain exclusive access while the device is acquired.
This flag or DISCL_NONEXCLUSIVE must be set, but not both.
DISCL_FOREGROUND
Foreground access is required.
The device will be automatically unacquired whenever its associated window moves to the background.
This flag or DISCL_BACKGROUND must be set, but not both.
DISCL_NONEXCLUSIVE
Non exclusive access is required.
Multiple applications can access the device without interference.
This flag or DISCL_EXCLUSIVE must be set, but not both.
DISCL_NOWINKEY
The Windows key is to be disabled.
This is useful for preventing accidental exits from the applicaiton.
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|