Windows Media Player SDK banner art
PreviousNext

Using Device Contexts

The device context is a standard handle to a device context. You need this for many drawing functions so that Microsoft Windows knows which window to draw in. For example, to draw a rectangle, you need to specify the device context.

HDC hdc;
::Rectangle( hdc, 1, 1, 100, 100);

The device context is specified by Windows Media Player through the Render function. Use this device context for any drawing tool that requires a device context.

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.