Microsoft Windows CE 3.0  

Setting Display Modes

This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

You can set the display mode by using the IDirectDraw4::SetDisplayModemethod. The SetDisplayModemethod accepts four parameters that describe the dimensions, bit depth, and refresh rate of the mode to be set. However, attempting to set the display mode to anything other than the current mode will fail as the Windows CE version of DirectX does not support display mode changes.

The DirectDraw exclusive (full-screen) mode does not bar other applications from allocating DirectDrawSurface objects, nor does it exclude them from using DirectDraw or GDI functionality. However, it does prevent applications other than the one that obtained exclusive access from changing the palette.

Note   You can only call the IDirectDraw4::SetDisplayModemethod from the thread that created the application window. For single threaded applications (the vast majority), this restriction isn't an issue.

 Last updated on Tuesday, May 18, 2004

© 2004 Microsoft Corporation. All rights reserved.