문제

I'm maintaining a legacy application, and I need to find the documentation for the IDirectDraw::SetCooperativeLevel function. (No, the Windows CE MSDN page doesn't cut it.) It's not in MSDN, it's not in the latest DirectX SDK documentation, and by looking around Microsoft removed all DirectDraw documentation (and old SDKs) from their website.

Before I go off downloading old DirectX SDK installers from random websites, does anyone know a better place to find DirectDraw documentation?

도움이 되었습니까?

해결책

Not sure what information you need, but here's what I got.

Taken from a tutorial here: http://www.gamedev.net/reference/articles/article608.asp

   /*
    * The cooperative level determines how much control we have over the
    * screen. This must at least be either DDSCL_EXCLUSIVE or DDSCL_NORMAL
    *
    * DDSCL_EXCLUSIVE allows us to change video modes, and requires
    * the DDSCL_FULLSCREEN flag, which will cause the window to take over
    * the fullscreen. This is the preferred DirectDraw mode because it allows
    * us to have control of the whole screen without regard for GDI.
    *
    * DDSCL_NORMAL is used to allow the DirectDraw app to run windowed.
    */
    ddrval = lpDD->SetCooperativeLevel( hwnd, DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN );

I also found that SetCooperativeLevel must be called before SetDisplayMode.

Also this might or might not be helpful: http://www.eggheadcafe.com/software/aspnet/33936361/idirectdraw7setcooperativelevel-and-focusdevice-window.aspx

For pure documentation I couldn't find anything better than MSDN, so old SDKs are probably your best bet if the above doesn't cut it.

다른 팁

For what it's worth, I found a copy of the DirectX 7 SDK documentation with this Google search:

http://www.google.com/search?q=intitle%3A%22index+of%22+%22dx7docs.exe%22

I can find the document on MSDN : http://msdn.microsoft.com/en-us/library/aa918514.aspx

I don't know why you say that's unavailable.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top