Microsoft KB Archive/159228

{|
 * width="100%"|

-

The information in this article applies to:


 * Microsoft DirectX Software Development Kit, version 3.0
 * Microsoft Windows NT 4.0
 * Microsoft Windows 95

-

SUMMARY
This sample demonstrates how to switch between DirectDraw non-exclusive windowed and exclusive fullscreen modes.

The following file is available for download from the Microsoft Download Center. Click the file name below to download the file:

"Win2full.exe" For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address "http://www.microsoft.com/downloads/search.asp" and then click How to use the Microsoft Download Center.

MORE INFORMATION
This sample code demonstrates the process of switching a DirectDraw app from windowed mode non-exclusive to fullscreen exclusive mode and back. The sample was written with Microsoft Visual C++ 4.1 and DirectX 3.0 SDK.

The process of switching from windowed mode and back requires the application to:


 * destroy all DirectDraw objects.
 * recreate each of those objects.
 * reinitialize all DirectDraw objects required for the specific app.

Execute DDSAMPLE.exe to run the sample. Select ESC to quit or the ALT+ENTER keys to switch modes. Additional query words: 3.00 kbdsd DDraw

Keywords : kbfile kbDirectDraw KbDirectX KbDirectX300 kbNTOS400 kbSDKWin32 kbWinOS95 kbfaq

Version : WINDOWS:3.0,95; winnt:4.0

Platform : WINDOWS winnt

Issue type : kbinfo
 * }