Microsoft SDK for Java

setCooperativeLevel

The setCooperativeLevel method of the DirectDraw Class contains the following signatures:

setCooperativeLevel(Component c, int flags)
setCooperativeLevel(int hdl, int flags)

setCooperativeLevel(Component c, int flags)

Determines the top-level behavior of the application (the primary method that does so).

Syntax

public void setCooperativeLevel(Component c, int flags);

Parameters

c The Component used for the application.
flags One or more values of DDSCL_ type.

Remarks

You must call the show() or addNotify() method before calling setCooperativeLevel.

See Also

setDisplayMode, compact, enumDisplayModes

setCooperativeLevel(int hdl, int flags)

Serves as a helper for the setCooperativeLevel(Component, int) method and remains for use by more advanced programmers. The setCooperativeLevel method also determines the top-level behavior of the application.

Syntax

public void setCooperativeLevel(int hdl, int flags);

Parameters

hdl The Microsoft® Windows® handle used for the application. Applications can use DirectDraw with multiple windows. Therefore, setCooperativeLevel does not require a window handle to be specified if the application is requesting the DDSCL_NORMAL mode. By passing a null to the window handle, all the windows can be used simultaneously in normal Windows mode.
flags One or more values of the DDSCL_ type.

See Also

setDisplayMode, compact, enumDisplayModes

© 1999 Microsoft Corporation. All rights reserved. Terms of use.