DirectX SDK

DDOverlay Sample

[Visual Basic]

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

[C++]

Description

This sample application demonstrates the use of overlays in a windowed DirectDraw application.

Path

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

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

User's Guide

Your hardware must support overlays in order for the program to run.

Try moving, resizing, and minimizing and restoring the window. Press ALT+F4 or click the Close button to quit.

Programming Notes

The program checks for overlay support, loads a bitmap into an overlay surface, and updates the window from the overlay surface in response to Windows messages.