The setCooperativeLevel method of the DirectDraw Class contains the following signatures:
setCooperativeLevel(Component c, int flags)
setCooperativeLevel(int hdl, int flags)
Determines the top-level behavior of the application (the primary method that does so).
public void setCooperativeLevel(Component c, int flags);
c | The Component used for the application. |
flags | One or more values of DDSCL_ type. |
You must call the show() or addNotify() method before calling setCooperativeLevel.
setDisplayMode, compact, enumDisplayModes
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.
public void setCooperativeLevel(int hdl, int flags);
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. |
setDisplayMode, compact, enumDisplayModes