www.BCB-Tools.com

Home of
RAD DirectX
for
C++ Builder

...

C++ Builder wrapping DirectX

...

Please Register

So we can
create more

the TDx_Library
the TDx9_Library



Welcome to BCB-Tools.com Latest News

Development Tools Demo Applications Step-by-Step Tutorials Component Reference

Register Here! Available Downloads

Frequently Asked Questions Discussion Forums Receive emails from BCB-Tools.com Send us some Feedback

Links to other sites Information about the BCB-Tools.com website


    TDx_Input_Library v1.90 Component Reference

    -= Click to navigate the reference =-
    Go to the Welcome Page

    [ TDx_InputDevice::SetCooperativeLevel() ]     [ next: SetDataFormat() ]     [ prev: SendForceFeedbackCommand() ]

    public:

         virtual bool __fastcall SetCooperativeLevel( HWND pHWnd, dword pFlags );





    -= Go to the TDx_InputDevice description =-    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: admin@bcb-tools.com.



























Top

Welcome |  Latest News |  Tools |  Demos |  Tutorials |  Reference |  Register |  Downloads
FAQ |  Forums |  Feedback |  Mailing List |  Links |  Site Information

This page is Copyright © 2008 Darren John Dwyer, Australia. All Rights Reserved.
Borland C++ Builder, CBuilder, etc are Trademarks of Borland Corporation.
DirectX, DirectDraw, Windows, etc are Trademarks of Microsoft Corporation.