Platform SDK: DirectX

IMControl Sample

[C++]

This topic pertains only to application development in Visual Basic. See Direct3D Immediate Mode C++ Samples.

[Visual Basic]

Description

This sample is a control that can be used in an application to render a 3-D scene. It is used in most of the other Visual Basic Direct3D samples.

Path

Source: (SDK root)\Samples\Multimedia\VBSamples\D3dim\Src\Imcontrol

Executable: (SDK root)\Samples\Multimedia\VBSamples\D3dim\Bin\Imcontrol.exe

User's Guide

For an example of how Imcontrol.ocx can be integrated into a 3-D application, see the Billboard sample. Most of the other samples also use this control.

Programming Notes

The control handles the initialization of DirectDraw and Direct3D in full-screen and windowed modes, as well as implementing the F5 key for displaying a dialog box that allows the user to change the device and configuration.