DirectX SDK

Switcher Sample

[Visual Basic]

This topic pertains only to application development in C and C++. See DirectDraw Visual Basic Samples.

[C++]

Description

This sample shows how to switch between the normal and exclusive cooperative levels in DirectDraw.

Path

Source: (SDK root)\Samples\Multimedia\DDraw\Src\Switcher

Executable: (SDK root)\Samples\Multimedia\DDraw\Bin\Switcher.exe

User's Guide

Press ALT+ENTER to switch between full-screen and windowed mode. Quit the program by pressing ESC.

Programming Notes

In normal (windowed) mode, the sample assigns a clipper, shows the mouse cursor, and handles window moves, WM_PAINT messages, and pausing caused by losing focus to other applications. In exclusive (full-screen) mode it uses page flipping rather than blitting to update the scene.