Microsoft Windows CE 3.0  

AlignedWidth

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.

When a surface is created, the allocated surface width may differ from the requested surface width. Depending on byte alignment requirements, the requested width might be increased for memory allocation purposes. This operation is invisible to the surface, and does not affect the realized surface width. No drawing occurs in the aligned portion of the surface, so that part of the surface should normally be ignored.

The AlignedWidthfunction allows your driver to get information on the width of the memory allocated for the surface.

virtual DWORD AlignedWidth (void );

Parameters

None

Return Values

This function returns the aligned width of the current surface. The aligned width is always greater than or equal to the requested surface width. Normally, you would never use this value in conjunction with drawing operations.



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.