DDGPE::DetectMode (Windows CE 5.0)
This method determines the display mode that corresponds exactly to a set of parameters. If GetMode and GetModeEx are supported, they parse the list of supported modes to find the display mode that matches the parameters..
virtual SCODE DetectMode(DWORD* dwModeID,DWORD dwWidth,DWORDdwHeight,EGPEFormatformat,EDDGPEPixelFormatpixelFormat,DDPIXELFORMAT* pDDPF= NULL );
Parameters
- dwModeID
Mode that is detected, based on the selected parameters. - dwWidth
Display mode's width in pixels. - dwHeight
Display mode's height in pixels. - format
Display mode's format. - pixelFormat
Display mode's pixel format. - pDDPF
DirectDraw pixel format structure to use in addition to the other parameters for precisely matching a mode. If this parameter is NULL, it is ignored, and the function relies on the other parameters to find a match.
Return Values
The return value is S_OK, if the function is successful. Otherwise, an error code is returned.
Requirements
OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header: Ddgpe.h.
Link Library: Ddgpe.lib.
See Also
DDGPE Class | DDGPE Class Definition
Send Feedback on this topic to the authors