Share via


Windows Media Player 11 SDK Using Device Contexts 

Windows Media Player SDK banner art

Previous Next

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. If your plug-in renders using a window, you'll need to use the device context of that window. Use this device context for any drawing tool that requires a device context.

See Also

Previous Next