Microsoft Windows CE 3.0  

Init

Important:
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.

The Initfunction is similar to the GPE::Initfunction. In addition to its counterpart's functions, the DDGPE::Initfunction initializes the pixel format for the current surface. DDGPEand GPEset up their member variables in their own constructors, so your driver will normally not need to call this function. If the constructor for your custom surface object does not call a DDGPEconstructor, you should call this function to ensure that all surface information is set up properly.

virtual void Init ( int
width
,
int
height
,
void *
pBits
,
int
stride
,
EGPEFormat
format
,
EDDGPEPixelFormat
pixelFormat
);

Parameters

width
The requested width for the surface, in pixels.
height
The requested height for the surface, in pixels.
pBits
A pointer that has been allocated for the surface's graphic data.
stride
The requested stride for the surface.
format
The requested format for the surface.
pixelFormat
The requested pixel format for the surface.

Return Values

None



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.